How schemas integrate with GraphQL in Orionjs
schemaWithName()
, it can be used directly in GraphQL resolvers:
UserSchema
Schema Type | GraphQL Type | Notes |
---|---|---|
String | String | Plain text |
Number | Float | Default numeric type |
'integer' | Int | Whole numbers |
Boolean | Boolean | True/false values |
Date | Date | Custom scalar type |
Schema | Object Type | Nested object definition |
[Type] | [Type] | List of items |
Enum | Enum | Custom enum type |