GraphQL commenting

For documenting the schema (https://dgraph.io/docs/graphql/schema/documentation/), should I always place the documentation for predicates before the predicate? E.g.

"""
Screening regarding a Job's details.
"""
HAS_SCREENING_FORM: [ScreeningForm]

or after?

Yes. If you want your tool (e.g. GraphQL playground or Graphiql) to pick it up as documentation.

Same thing with your fields

1 Like