Licensed to be used in conjunction with basebox, only.
basebox GraphQL Directives
basebox uses GraphQL schema directives to extend the capabilities of GraphQL schemas. This page lists all basebox specific directives, or extensions.
Available Directives
@bb_owned
Mark an object type as owned.
@bb_owned_with_access
Mark an object type as owned but allow access on it by other users we explicitly specify in a @bb_resolver
.
@bb_user
Specify a role in the schema. Role records are owned by their respective creators.
@bb_primarykey
Mark an object's field to be a primary key in the created database.
@bb_resolver
Specify how to resolve a GraphQL operation.
@bb_scalar
Specify a custom GraphQL scalar type.
@currentUserId
Placeholder for the ID of the current user.
@bb_restrict_fields
Provides possibility to restrict fields of a type for read and write access on operation level with a specific directive.
@bb_roles
Allows access to specific owned data for any other role on operation level with a specific directive.