We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seem not work with apollo server 2.x
I config like document but not return any error
schema.graphql
directive @constraint( minLength: Int maxLength: Int startsWith: String endsWith: String contains: String notContains: String pattern: String format: String differsFrom: String min: Float max: Float exclusiveMin: Float exclusiveMax: Float notEqual: Float ) on ARGUMENT_DEFINITION
category.grapqhl
type Query { category(id: ID!): Category categories( where: JSON limit: Float @constraint(min: 1, max: 10) offset: Int order: String ): [Category!] categoriesConnection( where: JSON first: Int! last: Int after: String before: String ): CategoryConnection! }
import { resolver, createConnectionResolver } from 'graphql-sequelize' export default { category: resolver((parent, args, context, info) => context.models.Category), categories: resolver((parent, args, context, info) => context.models.Category), categoriesConnection: createConnectionResolver({ target: (parent, args, context, info) => context.models.Category, where: (findOptions, args) => args }).resolveConnection }
my query in playground
query{ categories(limit: 15){ id name } }
and graphql still return right data not validate limit arg
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seem not work with apollo server 2.x
I config like document but not return any error
schema.graphql
category.grapqhl
my query in playground
and graphql still return right data not validate limit arg
The text was updated successfully, but these errors were encountered: