Skip to content

Instantly share code, notes, and snippets.

@yyyyaaa
Last active August 4, 2017 03:42
Show Gist options
  • Save yyyyaaa/cec2d814f6c6a316168db5439190f4d3 to your computer and use it in GitHub Desktop.
Save yyyyaaa/cec2d814f6c6a316168db5439190f4d3 to your computer and use it in GitHub Desktop.
means:
  • - when before Type
  • - when after Type

- A map thunk is a function that returns the map type GraphQLFieldConfigMapThunk = () => GraphQLFieldConfigMap

##################################### type GraphQLSchemaConfig = { query: GraphQLObjectType; mutation?: ?GraphQLObjectType; };

type GraphQLObjectTypeConfig = { name: string; description?: ?string; fields: GraphQLFieldConfigMapThunk | GraphQLFieldConfigMap; interfaces?: ...; };

type GraphQLFieldConfigMap = { [fieldName: string]: GraphQLFieldConfig; };

type GraphQLFieldConfig = { type: GraphQLOutputType; description?: ?string; args?: GraphQLFieldConfigArgumentMap; resolve?: GraphQLFieldResolveFn; deprecationReason?: string; };

type GraphQLFieldResolveFn = ( source?: any, args?: {[argName: string]: any}, context?: any, info?: GraphQLResolveInfo ) => any;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment