From e84685f69099196bae4d40edb4994d566f651b4c Mon Sep 17 00:00:00 2001 From: Barry Low Date: Sun, 10 Feb 2019 12:22:29 -0800 Subject: [PATCH] Add FIELD_DEFINITION to directives in schema --- api/src/graphql/schema.graphql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/graphql/schema.graphql b/api/src/graphql/schema.graphql index 54559651e..b187cef99 100644 --- a/api/src/graphql/schema.graphql +++ b/api/src/graphql/schema.graphql @@ -1,9 +1,9 @@ # import Query.TeamConnection, Team from "../generated/prisma.graphql" -directive @isAuthenticated on QUERY | FIELD | MUTATION -directive @hasRole(roles: [String]) on QUERY | FIELD | MUTATION -directive @isOwner(type: String) on QUERY | MUTATION -directive @isOwnerOrHasRole(type: String, roles: [String]) on QUERY | MUTATION +directive @isAuthenticated on QUERY | FIELD | MUTATION | FIELD_DEFINITION +directive @hasRole(roles: [String]) on QUERY | FIELD | MUTATION | FIELD_DEFINITION +directive @isOwner(type: String) on QUERY | MUTATION | FIELD_DEFINITION +directive @isOwnerOrHasRole(type: String, roles: [String]) on QUERY | MUTATION | FIELD_DEFINITION type Query { teams: TeamConnection