You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I use type Boolean in my graphql schema and AutoField i get this error in my browser :
Uncaught Error: Unsupported field type: Boolean at invariant
example:
const type=buildSchema(`
type SignUp {
name: String!
familyName: String!
email: String!
password: String!
terms: Boolean!
}
# This is required by buildASTSchema
type Query { anything: ID }
`).getType('SignUp')
const schema = new GraphQLBridge(type, function (model) { .....
example :
<AutoField name="terms" type='checkbox' label="I agree to adhere with terms "/>
I can solved this problem
Or using Int in the schema
or using CheckBox component instead of AutoField
or adding property component=CheckBox in AutoField
if I use type Boolean in my graphql schema and AutoField i get this error in my browser :
Uncaught Error: Unsupported field type: Boolean at invariant
example:
example :
<AutoField name="terms" type='checkbox' label="I agree to adhere with terms "/>
I can solved this problem
Maybe adding this line code to https://github.com/vazco/uniforms/blob/master/packages/uniforms/src/GraphQLBridge.js
can solve the issue
` getType (name) {
const fieldType = this.getField(name).type;
`
The text was updated successfully, but these errors were encountered: