391 lines
7.0 KiB
GraphQL
Raw Normal View History

2019-04-19 17:24:56 +02:00
input createPostInput {
data: PostInput
}
type createPostPayload {
post: Post
}
2019-04-18 18:47:48 +02:00
input createRoleInput {
data: RoleInput
}
type createRolePayload {
role: UsersPermissionsRole
}
input createUserInput {
data: UserInput
}
type createUserPayload {
user: UsersPermissionsUser
}
2019-06-13 15:36:05 +02:00
input createZobInput {
data: ZobInput
}
2019-04-18 18:47:48 +02:00
2019-06-13 15:36:05 +02:00
type createZobPayload {
zob: Zob
}
2019-06-13 18:23:24 +02:00
input createZreInput {
data: ZreInput
2019-04-18 18:47:48 +02:00
}
2019-06-13 18:23:24 +02:00
type createZrePayload {
zre: Zre
2019-04-18 18:47:48 +02:00
}
"""
The `DateTime` scalar represents a date and time following the ISO 8601 standard
"""
scalar DateTime
2019-04-19 17:24:56 +02:00
input deletePostInput {
where: InputID
}
type deletePostPayload {
post: Post
}
2019-04-18 18:47:48 +02:00
input deleteRoleInput {
where: InputID
}
type deleteRolePayload {
role: UsersPermissionsRole
}
input deleteUserInput {
where: InputID
}
type deleteUserPayload {
user: UsersPermissionsUser
}
2019-06-13 15:36:05 +02:00
input deleteZobInput {
where: InputID
}
type deleteZobPayload {
zob: Zob
}
2019-06-13 18:23:24 +02:00
input deleteZreInput {
where: InputID
}
type deleteZrePayload {
zre: Zre
2019-04-18 18:47:48 +02:00
}
input editFileInput {
name: String
hash: String
sha256: String
ext: String
mime: String
size: String
url: String
provider: String
public_id: String
related: [ID]
}
2019-04-19 17:24:56 +02:00
input editPostInput {
articles: [ID]
}
2019-04-18 18:47:48 +02:00
input editRoleInput {
name: String
description: String
type: String
permissions: [ID]
users: [ID]
}
input editTestInput {
type: String
}
input editUserInput {
username: String
email: String
provider: String
password: String
resetPasswordToken: String
confirmed: Boolean
blocked: Boolean
role: ID
}
2019-06-13 15:36:05 +02:00
input editZobInput {
name: String
}
2019-06-13 18:23:24 +02:00
input editZreInput {
content2: String
posts: [ID]
title: String
image: ID
}
2019-04-18 18:47:48 +02:00
input FileInput {
name: String!
hash: String!
sha256: String
ext: String
mime: String!
size: String!
url: String!
provider: String!
public_id: String
related: [ID]
}
input InputID {
id: ID!
}
scalar JSON
"""The `Long` scalar type represents 52-bit integers"""
scalar Long
2019-06-13 18:23:24 +02:00
union Morph = UsersPermissionsMe | UsersPermissionsMeRole | Post | createPostPayload | updatePostPayload | deletePostPayload | Zob | createZobPayload | updateZobPayload | deleteZobPayload | Zre | createZrePayload | updateZrePayload | deleteZrePayload | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | createRolePayload | updateRolePayload | deleteRolePayload | UsersPermissionsUser | createUserPayload | updateUserPayload | deleteUserPayload | MypluginTest
2019-04-18 18:47:48 +02:00
type Mutation {
2019-04-19 17:24:56 +02:00
createPost(input: createPostInput): createPostPayload
updatePost(input: updatePostInput): updatePostPayload
deletePost(input: deletePostInput): deletePostPayload
2019-06-13 15:36:05 +02:00
createZob(input: createZobInput): createZobPayload
updateZob(input: updateZobInput): updateZobPayload
deleteZob(input: deleteZobInput): deleteZobPayload
2019-06-13 18:23:24 +02:00
createZre(input: createZreInput): createZrePayload
updateZre(input: updateZreInput): updateZrePayload
deleteZre(input: deleteZreInput): deleteZrePayload
2019-04-18 18:47:48 +02:00
"""Create a new role"""
createRole(input: createRoleInput): createRolePayload
"""Update an existing role"""
updateRole(input: updateRoleInput): updateRolePayload
"""Delete an existing role"""
deleteRole(input: deleteRoleInput): deleteRolePayload
"""Create a new user"""
createUser(input: createUserInput): createUserPayload
"""Update an existing user"""
updateUser(input: updateUserInput): updateUserPayload
"""Delete an existing user"""
deleteUser(input: deleteUserInput): deleteUserPayload
upload(refId: ID, ref: String, source: String, file: Upload!): UploadFile!
}
type MypluginTest {
id: ID!
type: String!
}
2019-04-19 17:24:56 +02:00
type Post {
id: ID!
created_at: DateTime!
updated_at: DateTime!
2019-06-13 18:23:24 +02:00
articles(sort: String, limit: Int, start: Int, where: JSON): [Zre]
2019-04-19 17:24:56 +02:00
}
input PostInput {
articles: [ID]
}
2019-04-18 18:47:48 +02:00
type Query {
2019-04-19 17:24:56 +02:00
post(id: ID!): Post
posts(sort: String, limit: Int, start: Int, where: JSON): [Post]
2019-06-13 15:36:05 +02:00
zob(id: ID!): Zob
zobs(sort: String, limit: Int, start: Int, where: JSON): [Zob]
2019-06-13 18:23:24 +02:00
zre(id: ID!): Zre
zres(sort: String, limit: Int, start: Int, where: JSON): [Zre]
2019-04-18 18:47:48 +02:00
files(sort: String, limit: Int, start: Int, where: JSON): [UploadFile]
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]
user(id: ID!): UsersPermissionsUser
users(sort: String, limit: Int, start: Int, where: JSON): [UsersPermissionsUser]
test(id: ID!): MypluginTest
tests(sort: String, limit: Int, start: Int, where: JSON): [MypluginTest]
me: UsersPermissionsMe
}
input RoleInput {
name: String!
description: String
type: String
permissions: [ID]
users: [ID]
}
input TestInput {
type: String!
}
2019-04-19 17:24:56 +02:00
input updatePostInput {
where: InputID
data: editPostInput
}
type updatePostPayload {
post: Post
}
2019-04-18 18:47:48 +02:00
input updateRoleInput {
where: InputID
data: editRoleInput
}
type updateRolePayload {
role: UsersPermissionsRole
}
input updateUserInput {
where: InputID
data: editUserInput
}
type updateUserPayload {
user: UsersPermissionsUser
}
2019-06-13 15:36:05 +02:00
input updateZobInput {
where: InputID
data: editZobInput
}
type updateZobPayload {
zob: Zob
}
2019-06-13 18:23:24 +02:00
input updateZreInput {
where: InputID
data: editZreInput
}
type updateZrePayload {
zre: Zre
}
2019-04-18 18:47:48 +02:00
"""The `Upload` scalar type represents a file upload."""
scalar Upload
type UploadFile {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
hash: String!
sha256: String
ext: String
mime: String!
size: String!
url: String!
provider: String!
public_id: String
related(sort: String, limit: Int, start: Int, where: JSON): [Morph]
}
input UserInput {
username: String!
email: String!
provider: String
password: String
resetPasswordToken: String
confirmed: Boolean
blocked: Boolean
role: ID
}
type UsersPermissionsMe {
_id: ID!
username: String!
email: String!
confirmed: Boolean
blocked: Boolean
role: UsersPermissionsMeRole
}
type UsersPermissionsMeRole {
_id: ID!
name: String!
description: String
type: String
}
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 UsersPermissionsUser {
id: ID!
created_at: DateTime!
updated_at: DateTime!
2019-04-18 18:47:48 +02:00
username: String!
email: String!
provider: String
confirmed: Boolean
blocked: Boolean
role: UsersPermissionsRole
}
2019-06-13 15:36:05 +02:00
type Zob {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String
}
input ZobInput {
name: String
}
2019-06-13 18:23:24 +02:00
"""Super description"""
type Zre {
id: ID!
created_at: DateTime!
updated_at: DateTime!
content2: String
title: String
image: UploadFile
posts(sort: String, limit: Int, start: Int, where: JSON): [Post]
}
input ZreInput {
content2: String
posts: [ID]
title: String
image: ID
}