neo4j / docs-graphql

GraphQL docs
5 stars 9 forks source link

Documentation issue for `subscription` directive (again) #159

Closed andreloeffelmann closed 3 months ago

andreloeffelmann commented 3 months ago

The documentation for the @subscription directive (here) is contradictory. The stated enum SubscriptionFields do not match the values stated in the @subscription directive:

enum SubscriptionFields {
    CREATE
    UPDATE
    DELETE
    CREATE_RELATIONSHIP
    DELETE_RELATIONSHIP
}
directive @subscription(events: [SubscriptionFields!]! = [CREATED, UPDATED, DELETED, RELATIONSHIP_CREATED, RELATIONSHIP_DELETED]) on OBJECT | SCHEMA

It seems that the values of the @subscription directive are correct. So it should be e.g. CREATED instead of CREATE and RELATIONSHIP_CREATED instead of CREATE_RELATIONSHIP