cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How do I set custom field descriptions in the GraphQL schema?

a1olegs
Node Clone
CALL graphql.idl('
type Movie  {
      """
      custom description of field
      """
      title: String!  
	}
')

In Apollo triple quotes work,
Via "CALL graphql.idl" and POST to the 'http://localhost:7474/graphql/idl/` - no

1 ACCEPTED SOLUTION

a1olegs
Node Clone

custom field descriptions are not saved in the Neo4j schema.
Only in the GraphQL server schema (apollo)

View solution in original post

4 REPLIES 4

MuddyBootsCode
Graph Steward

The custom field descriptions need to look like this in your schema:

"""
Describes a User of the system
"""
type User {
  id: ID!
  userName: String
  password: String
}

At least, that's how it's worked for me.

in what environment do you set the schema, and in what environment can you see the result?

MuddyBootsCode
Graph Steward

I'm using GraphQL for my API. That is in the schema definition.

a1olegs
Node Clone

custom field descriptions are not saved in the Neo4j schema.
Only in the GraphQL server schema (apollo)