Created
August 30, 2018 19:24
-
-
Save mateodelnorte/d886f574b8bf3234f3aae0eedab84e39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Contract { | |
_id: ID! | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
startDate: DateTime | |
endDate: DateTime | |
meta: JSON | |
contractType: Contracttype | |
files(sort: String, limit: Int, start: Int, where: JSON): [UploadFile] | |
} | |
type ContractAggregator { | |
count: Int | |
} | |
type ContractConnection { | |
values: [Contract] | |
groupBy: ContractGroupBy | |
aggregate: ContractAggregator | |
} | |
type ContractConnection_id { | |
key: ID | |
connection: ContractConnection | |
} | |
type ContractConnectionContractType { | |
key: ID | |
connection: ContractConnection | |
} | |
type ContractConnectionCreatedAt { | |
key: DateTime | |
connection: ContractConnection | |
} | |
type ContractConnectionEndDate { | |
key: DateTime | |
connection: ContractConnection | |
} | |
type ContractConnectionMeta { | |
key: JSON | |
connection: ContractConnection | |
} | |
type ContractConnectionStartDate { | |
key: DateTime | |
connection: ContractConnection | |
} | |
type ContractConnectionUpdatedAt { | |
key: DateTime | |
connection: ContractConnection | |
} | |
type ContractGroupBy { | |
_id: [ContractConnection_id] | |
createdAt: [ContractConnectionCreatedAt] | |
updatedAt: [ContractConnectionUpdatedAt] | |
startDate: [ContractConnectionStartDate] | |
endDate: [ContractConnectionEndDate] | |
meta: [ContractConnectionMeta] | |
contractType: [ContractConnectionContractType] | |
} | |
type Contracttype { | |
_id: ID! | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
name: String | |
createdDate: DateTime | |
meta: JSON! | |
} | |
type ContracttypeAggregator { | |
count: Int | |
} | |
type ContracttypeConnection { | |
values: [Contracttype] | |
groupBy: ContracttypeGroupBy | |
aggregate: ContracttypeAggregator | |
} | |
type ContracttypeConnection_id { | |
key: ID | |
connection: ContracttypeConnection | |
} | |
type ContracttypeConnectionCreatedAt { | |
key: DateTime | |
connection: ContracttypeConnection | |
} | |
type ContracttypeConnectionCreatedDate { | |
key: DateTime | |
connection: ContracttypeConnection | |
} | |
type ContracttypeConnectionMeta { | |
key: JSON | |
connection: ContracttypeConnection | |
} | |
type ContracttypeConnectionName { | |
key: String | |
connection: ContracttypeConnection | |
} | |
type ContracttypeConnectionUpdatedAt { | |
key: DateTime | |
connection: ContracttypeConnection | |
} | |
type ContracttypeGroupBy { | |
_id: [ContracttypeConnection_id] | |
createdAt: [ContracttypeConnectionCreatedAt] | |
updatedAt: [ContracttypeConnectionUpdatedAt] | |
name: [ContracttypeConnectionName] | |
createdDate: [ContracttypeConnectionCreatedDate] | |
meta: [ContracttypeConnectionMeta] | |
} | |
type Customer { | |
_id: ID! | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
firstName: String | |
lastName: String | |
membership: Boolean | |
} | |
type CustomerAggregator { | |
count: Int | |
} | |
type CustomerConnection { | |
values: [Customer] | |
groupBy: CustomerGroupBy | |
aggregate: CustomerAggregator | |
} | |
type CustomerConnection_id { | |
key: ID | |
connection: CustomerConnection | |
} | |
type CustomerConnectionCreatedAt { | |
key: DateTime | |
connection: CustomerConnection | |
} | |
type CustomerConnectionFirstName { | |
key: String | |
connection: CustomerConnection | |
} | |
type CustomerConnectionLastName { | |
key: String | |
connection: CustomerConnection | |
} | |
type CustomerConnectionMembership { | |
key: Boolean | |
connection: CustomerConnection | |
} | |
type CustomerConnectionUpdatedAt { | |
key: DateTime | |
connection: CustomerConnection | |
} | |
type CustomerGroupBy { | |
_id: [CustomerConnection_id] | |
createdAt: [CustomerConnectionCreatedAt] | |
updatedAt: [CustomerConnectionUpdatedAt] | |
firstName: [CustomerConnectionFirstName] | |
lastName: [CustomerConnectionLastName] | |
membership: [CustomerConnectionMembership] | |
} | |
""" | |
The `DateTime` scalar represents a date and time following the ISO 8601 standard | |
""" | |
scalar DateTime | |
""" | |
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). | |
""" | |
scalar JSON | |
union Morph = Contract | ContractConnection | ContractAggregator | ContractGroupBy | ContractConnection_id | ContractConnectionCreatedAt | ContractConnectionUpdatedAt | ContractConnectionStartDate | ContractConnectionEndDate | ContractConnectionMeta | ContractConnectionContractType | Contracttype | ContracttypeConnection | ContracttypeAggregator | ContracttypeGroupBy | ContracttypeConnection_id | ContracttypeConnectionCreatedAt | ContracttypeConnectionUpdatedAt | ContracttypeConnectionName | ContracttypeConnectionCreatedDate | ContracttypeConnectionMeta | Customer | CustomerConnection | CustomerAggregator | CustomerGroupBy | CustomerConnection_id | CustomerConnectionCreatedAt | CustomerConnectionUpdatedAt | CustomerConnectionFirstName | CustomerConnectionLastName | CustomerConnectionMembership | Product | ProductConnection | ProductAggregator | ProductGroupBy | ProductConnection_id | ProductConnectionName | ProductConnectionDescription | UploadFile | UploadFileConnection | UploadFileAggregator | UploadFileGroupBy | UploadFileConnection_id | UploadFileConnectionCreatedAt | UploadFileConnectionUpdatedAt | UploadFileConnectionName | UploadFileConnectionHash | UploadFileConnectionSha256 | UploadFileConnectionExt | UploadFileConnectionMime | UploadFileConnectionSize | UploadFileConnectionUrl | UploadFileConnectionProvider | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsRoleConnection | UsersPermissionsRoleAggregator | UsersPermissionsRoleGroupBy | UsersPermissionsRoleConnection_id | UsersPermissionsRoleConnectionName | UsersPermissionsRoleConnectionDescription | UsersPermissionsRoleConnectionType | UsersPermissionsUser | UsersPermissionsUserConnection | UsersPermissionsUserAggregator | UsersPermissionsUserGroupBy | UsersPermissionsUserConnection_id | UsersPermissionsUserConnectionUsername | UsersPermissionsUserConnectionEmail | UsersPermissionsUserConnectionResetPasswordToken | UsersPermissionsUserConnectionConfirmed | UsersPermissionsUserConnectionBlocked | UsersPermissionsUserConnectionRole | |
type Product { | |
_id: ID! | |
name: String | |
description: String | |
} | |
type ProductAggregator { | |
count: Int | |
} | |
type ProductConnection { | |
values: [Product] | |
groupBy: ProductGroupBy | |
aggregate: ProductAggregator | |
} | |
type ProductConnection_id { | |
key: ID | |
connection: ProductConnection | |
} | |
type ProductConnectionDescription { | |
key: String | |
connection: ProductConnection | |
} | |
type ProductConnectionName { | |
key: String | |
connection: ProductConnection | |
} | |
type ProductGroupBy { | |
_id: [ProductConnection_id] | |
name: [ProductConnectionName] | |
description: [ProductConnectionDescription] | |
} | |
type Query { | |
contract(id: ID!): Contract | |
contracts(sort: String, limit: Int, start: Int, where: JSON): [Contract] | |
contractsConnection(sort: String, limit: Int, start: Int, where: JSON): ContractConnection | |
contracttype(id: ID!): Contracttype | |
contracttypes(sort: String, limit: Int, start: Int, where: JSON): [Contracttype] | |
contracttypesConnection(sort: String, limit: Int, start: Int, where: JSON): ContracttypeConnection | |
customer(id: ID!): Customer | |
customers(sort: String, limit: Int, start: Int, where: JSON): [Customer] | |
customersConnection(sort: String, limit: Int, start: Int, where: JSON): CustomerConnection | |
product(id: ID!): Product | |
products(sort: String, limit: Int, start: Int, where: JSON): [Product] | |
productsConnection(sort: String, limit: Int, start: Int, where: JSON): ProductConnection | |
files(sort: String, limit: Int, start: Int, where: JSON): [UploadFile] | |
filesConnection(sort: String, limit: Int, start: Int, where: JSON): UploadFileConnection | |
role(id: ID!): UsersPermissionsRole | |
""" | |
Retrieve all the existing roles. You can't apply filters on this query. | |
""" | |
roles(sort: String, limit: Int, start: Int, where: JSON): [UsersPermissionsRole] | |
rolesConnection(sort: String, limit: Int, start: Int, where: JSON): UsersPermissionsRoleConnection | |
user(id: ID!): UsersPermissionsUser | |
users(sort: String, limit: Int, start: Int, where: JSON): [UsersPermissionsUser] | |
usersConnection(sort: String, limit: Int, start: Int, where: JSON): UsersPermissionsUserConnection | |
} | |
type UploadFile { | |
_id: ID! | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
name: String! | |
hash: String! | |
sha256: String | |
ext: String | |
mime: String! | |
size: String! | |
url: String! | |
provider: String! | |
related(sort: String, limit: Int, start: Int, where: JSON): [Morph] | |
} | |
type UploadFileAggregator { | |
count: Int | |
} | |
type UploadFileConnection { | |
values: [UploadFile] | |
groupBy: UploadFileGroupBy | |
aggregate: UploadFileAggregator | |
} | |
type UploadFileConnection_id { | |
key: ID | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionCreatedAt { | |
key: DateTime | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionExt { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionHash { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionMime { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionName { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionProvider { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionSha256 { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionSize { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionUpdatedAt { | |
key: DateTime | |
connection: UploadFileConnection | |
} | |
type UploadFileConnectionUrl { | |
key: String | |
connection: UploadFileConnection | |
} | |
type UploadFileGroupBy { | |
_id: [UploadFileConnection_id] | |
createdAt: [UploadFileConnectionCreatedAt] | |
updatedAt: [UploadFileConnectionUpdatedAt] | |
name: [UploadFileConnectionName] | |
hash: [UploadFileConnectionHash] | |
sha256: [UploadFileConnectionSha256] | |
ext: [UploadFileConnectionExt] | |
mime: [UploadFileConnectionMime] | |
size: [UploadFileConnectionSize] | |
url: [UploadFileConnectionUrl] | |
provider: [UploadFileConnectionProvider] | |
} | |
type UsersPermissionsPermission { | |
_id: ID! | |
type: String! | |
controller: String! | |
action: String! | |
enabled: Boolean! | |
policy: String | |
role: UsersPermissionsRole | |
} | |
type UsersPermissionsRole { | |
_id: ID! | |
name: String! | |
description: String | |
type: String | |
permissions(sort: String, limit: Int, start: Int, where: JSON): [UsersPermissionsPermission] | |
users(sort: String, limit: Int, start: Int, where: JSON): [UsersPermissionsUser] | |
} | |
type UsersPermissionsRoleAggregator { | |
count: Int | |
} | |
type UsersPermissionsRoleConnection { | |
values: [UsersPermissionsRole] | |
groupBy: UsersPermissionsRoleGroupBy | |
aggregate: UsersPermissionsRoleAggregator | |
} | |
type UsersPermissionsRoleConnection_id { | |
key: ID | |
connection: UsersPermissionsRoleConnection | |
} | |
type UsersPermissionsRoleConnectionDescription { | |
key: String | |
connection: UsersPermissionsRoleConnection | |
} | |
type UsersPermissionsRoleConnectionName { | |
key: String | |
connection: UsersPermissionsRoleConnection | |
} | |
type UsersPermissionsRoleConnectionType { | |
key: String | |
connection: UsersPermissionsRoleConnection | |
} | |
type UsersPermissionsRoleGroupBy { | |
_id: [UsersPermissionsRoleConnection_id] | |
name: [UsersPermissionsRoleConnectionName] | |
description: [UsersPermissionsRoleConnectionDescription] | |
type: [UsersPermissionsRoleConnectionType] | |
} | |
type UsersPermissionsUser { | |
_id: ID! | |
username: String! | |
email: String! | |
resetPasswordToken: String | |
confirmed: Boolean | |
blocked: Boolean | |
role: UsersPermissionsRole | |
} | |
type UsersPermissionsUserAggregator { | |
count: Int | |
} | |
type UsersPermissionsUserConnection { | |
values: [UsersPermissionsUser] | |
groupBy: UsersPermissionsUserGroupBy | |
aggregate: UsersPermissionsUserAggregator | |
} | |
type UsersPermissionsUserConnection_id { | |
key: ID | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserConnectionBlocked { | |
key: Boolean | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserConnectionConfirmed { | |
key: Boolean | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserConnectionEmail { | |
key: String | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserConnectionResetPasswordToken { | |
key: String | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserConnectionRole { | |
key: ID | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserConnectionUsername { | |
key: String | |
connection: UsersPermissionsUserConnection | |
} | |
type UsersPermissionsUserGroupBy { | |
_id: [UsersPermissionsUserConnection_id] | |
username: [UsersPermissionsUserConnectionUsername] | |
email: [UsersPermissionsUserConnectionEmail] | |
resetPasswordToken: [UsersPermissionsUserConnectionResetPasswordToken] | |
confirmed: [UsersPermissionsUserConnectionConfirmed] | |
blocked: [UsersPermissionsUserConnectionBlocked] | |
role: [UsersPermissionsUserConnectionRole] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment