Skip to content

Instantly share code, notes, and snippets.

View FluorescentHallucinogen's full-sized avatar
:octocat:
Born to create and share

Alexey Rodionov FluorescentHallucinogen

:octocat:
Born to create and share
View GitHub Profile
@FluorescentHallucinogen
FluorescentHallucinogen / directive-definition.graphql
Created April 24, 2019 18:00
@hasRole GraphQL custom directive
directive @hasRole (
OR: [ConstraintInput!]
NOT: [ConstraintInput!]
AND: [ConstraintInput!]
has_some: [UserRole!]
has_every: [UserRole!]
) on OBJECT | FIELD_DEFINITION
input ConstraintInput {
OR: [ConstraintInput!]