我会和镭一起来。但我收到错误错误消息

时间:2019-05-02 14:45:52

标签: spring-boot graphql react-admin graphql-java

我使用后端Spring Boot graphql Java。

Graphiql资源管理器控制台正常工作。但是我在react admin上遇到了Chrome控制台错误。 我不知道如何解决。

我的graphql模式。

schema {
    query: Query
}

type Query {
    allContacts: [Contact]
    contact(id: Int): Contact
}

type Contact {
    id: Int
    firstName: String
    lastName: String
}

此消息是Chrome控制台消息。

webpackHotDevClient.js:120 ./src/App.js
  Line 22:  'fakeServerFactory' is defined but never used  no-unused-vars
printWarnings @ webpackHotDevClient.js:120
invariant.esm.js:44 Missing field mutationType in {
  "queryType": {
    "name": "Query",
    "__typename": "__Type"
  },
  "types": [
    {
      "ki
warn @ invariant.esm.js:44
invariant.esm.js:44 Missing field subscriptionType in {
  "queryType": {
    "name": "Query",
    "__typename": "__Type"
  },
  "types": [
    {
      "ki
warn @ invariant.esm.js:44
invariant.esm.js:44 Missing field fields in {
  "kind": "SCALAR",
  "name": "Boolean",
  "description": "Built-in Boolean",
  "__typename": "__T
warn @ invariant.esm.js:44
invariant.esm.js:44 Missing field inputFields in {
  "kind": "SCALAR",
  "name": "Boolean",
  "description": "Built-in Boolean",
  "__typename": "__T

.
.
.


warn @ invariant.esm.js:44
introspection.js:233 Uncaught (in promise) TypeError: Cannot read property '__schema' of null
    at introspection.js:233
Uncaught (in promise) TypeError: Cannot read property '__schema' of null
    at introspection.js:233

我该如何调查?

0 个答案:

没有答案