Skip to content
#

graphql-schema

graphql logo

GraphQL is a data query language developed by Facebook. It provides an alternative to REST and ad-hoc webservice architectures. It allows clients to define the structure of the data required, and exactly the same structure of the data is returned from the server. It is a strongly typed runtime which allows clients to dictate what data is needed.

Here are 161 public repositories matching this topic...

type-graphql
hotchocolate
PascalSenn
PascalSenn commented Mar 17, 2020

We just need a piece of documentation because there is literally no documentation about directive locations except from the spec. The spec is not easy to read. Something like this would make sense

directive @field_definition on FIELD_DEFINITION
directive @argument_definition on ARGUMENT_DEFINITION
directive @object on OBJECT
directive @interface on INTERFACE

interface Foo @inter
joshuadutton
joshuadutton commented Jul 7, 2017

Directive declaration definition:
graphql/graphql-js#318

To do:

  • add directive to Type Definitions
  • add a Directive Types section with a declaration and usage examples
  • add a directive declaration (one liner) in the What does it look like? example

Maybe we could get rid of the Input with default value and Input with multiple arguments ex

0xdevalias
0xdevalias commented Apr 7, 2020
SyntaxError: Error while loading rule 'graphql/template-strings': Unexpected token  in JSON at position 0
Occurred while linting /Users/devalias/dev/REDACTED/schema.graphql
    at JSON.parse (<anonymous>)
    at Object.readSchema (/Users/devalias/dev/REDACTED/node_modules/graphql-config/lib/utils.js:141:38)
    at GraphQLProjectConfig.getSchema (/Users/devalias/dev/REDACTED/node_modules/g
Phylodome
Phylodome commented May 13, 2019

I am confused as to how an example such as this, found in your documentation, is compatible with graphql-auth-directives:

const server = new ApolloServer({
  schema: augmentedSchema,
  context: ({ req }) => {
    return {  /* Note: We return a context object containing both `driver` and `req` fields */
      driver,
      req
    };
  }
});

Given that `graphql-auth-directiv

Created by Facebook

Released 2015

Organization
graphql
Website
graphql.org
Wikipedia
Wikipedia

Related Topics

api rest
You can’t perform that action at this time.