581 lines
11 KiB
GraphQL
Raw Normal View History

type Article {
2019-07-12 15:39:18 +02:00
title: String!
content: String
2019-07-24 11:16:40 +02:00
published: Boolean
json: JSON
2019-07-05 14:59:31 +02:00
number: Int
date: DateTime
enum: ENUM_ARTICLE_ENUM
bool: Boolean
2019-07-24 11:16:40 +02:00
pic: UploadFile
mainTag: Tag
fb_cta: GroupCtaFacebook
mainIngredient: GroupIngredients
ingredients: [GroupIngredients]
pictures(sort: String, limit: Int, start: Int, where: JSON): [UploadFile]
linkedTags(sort: String, limit: Int, start: Int, where: JSON): [Tag]
manyTags(sort: String, limit: Int, start: Int, where: JSON): [Tag]
id: ID!
created_at: DateTime!
updated_at: DateTime!
}
input ArticleInput {
2019-07-12 15:39:18 +02:00
title: String!
content: String
2019-07-24 11:16:40 +02:00
published: Boolean
json: JSON
2019-07-05 14:59:31 +02:00
number: Int
date: DateTime
enum: ENUM_ARTICLE_ENUM
bool: Boolean
2019-07-24 11:16:40 +02:00
pic: ID
pictures: [ID]
mainTag: ID
linkedTags: [ID]
manyTags: [ID]
fb_cta: GroupctafacebookInput!
mainIngredient: GroupingredientsInput
ingredients: [GroupingredientsInput]
}
input createArticleInput {
data: ArticleInput
2019-04-19 17:24:56 +02:00
}
type createArticlePayload {
article: Article
2019-04-19 17:24:56 +02:00
}
2019-07-12 14:15:56 +02:00
input createRecipeInput {
data: RecipeInput
}
type createRecipePayload {
recipe: Recipe
}
2019-07-16 18:53:41 +02:00
input createRocketshipInput {
data: RocketshipInput
}
input createRocketshipmakerInput {
data: RocketshipmakerInput
}
type createRocketshipmakerPayload {
rocketshipmaker: Rocketshipmaker
}
type createRocketshipPayload {
rocketship: Rocketship
}
2019-04-18 18:47:48 +02:00
input createRoleInput {
data: RoleInput
}
type createRolePayload {
role: UsersPermissionsRole
}
2019-07-05 14:59:31 +02:00
input createTagInput {
data: TagInput
}
type createTagPayload {
tag: Tag
}
2019-04-18 18:47:48 +02:00
input createUserInput {
data: UserInput
}
type createUserPayload {
user: UsersPermissionsUser
}
"""
The `DateTime` scalar represents a date and time following the ISO 8601 standard
"""
scalar DateTime
input deleteArticleInput {
2019-04-19 17:24:56 +02:00
where: InputID
}
type deleteArticlePayload {
article: Article
2019-04-19 17:24:56 +02:00
}
2019-07-12 14:15:56 +02:00
input deleteRecipeInput {
where: InputID
}
type deleteRecipePayload {
recipe: Recipe
}
2019-07-16 18:53:41 +02:00
input deleteRocketshipInput {
where: InputID
}
input deleteRocketshipmakerInput {
where: InputID
}
type deleteRocketshipmakerPayload {
rocketshipmaker: Rocketshipmaker
}
type deleteRocketshipPayload {
rocketship: Rocketship
}
2019-04-18 18:47:48 +02:00
input deleteRoleInput {
where: InputID
}
type deleteRolePayload {
role: UsersPermissionsRole
}
2019-07-05 14:59:31 +02:00
input deleteTagInput {
where: InputID
}
type deleteTagPayload {
tag: Tag
}
2019-04-18 18:47:48 +02:00
input deleteUserInput {
where: InputID
}
type deleteUserPayload {
user: UsersPermissionsUser
}
input editArticleInput {
title: String
content: String
2019-07-24 11:16:40 +02:00
published: Boolean
json: JSON
2019-07-05 14:59:31 +02:00
number: Int
date: DateTime
enum: ENUM_ARTICLE_ENUM
bool: Boolean
2019-07-24 11:16:40 +02:00
pic: ID
pictures: [ID]
mainTag: ID
linkedTags: [ID]
manyTags: [ID]
fb_cta: editGroupctafacebookInput
mainIngredient: editGroupingredientsInput
ingredients: [editGroupingredientsInput]
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-07-24 11:16:40 +02:00
input editGroupctafacebookInput {
id: ID
title: String
description: String
}
input editGroupingredientsInput {
id: ID
name: String
quantity: Float
enum: ENUM_GROUPINGREDIENTS_ENUM
pic: ID
article: ID
2019-07-29 14:59:53 +02:00
articles: [ID]
2019-07-24 11:16:40 +02:00
}
2019-07-12 14:15:56 +02:00
input editRecipeInput {
title: String
}
2019-07-16 18:53:41 +02:00
input editRocketshipInput {
name: String
2019-07-30 09:08:10 +02:00
pic: ID
pictures: [ID]
2019-07-16 18:53:41 +02:00
}
input editRocketshipmakerInput {
name: String
}
2019-04-18 18:47:48 +02:00
input editRoleInput {
name: String
description: String
type: String
permissions: [ID]
users: [ID]
}
2019-07-05 14:59:31 +02:00
input editTagInput {
name: String
2019-07-24 11:16:40 +02:00
linkedArticles: [ID]
2019-07-05 14:59:31 +02:00
}
2019-04-18 18:47:48 +02:00
input editTestInput {
type: String
}
input editUserInput {
username: String
email: String
provider: String
password: String
resetPasswordToken: String
confirmed: Boolean
blocked: Boolean
role: ID
}
2019-07-05 14:59:31 +02:00
enum ENUM_ARTICLE_ENUM {
morning
noon
}
2019-07-24 11:16:40 +02:00
enum ENUM_GROUPINGREDIENTS_ENUM {
morning
noon
}
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]
}
2019-07-24 11:16:40 +02:00
"""test"""
type GroupCtaFacebook {
title: String
description: String
id: ID!
}
input GroupctafacebookInput {
title: String
description: String
}
type GroupIngredients {
name: String!
quantity: Float!
enum: ENUM_GROUPINGREDIENTS_ENUM
pic: UploadFile
article: Article
2019-07-29 14:59:53 +02:00
articles(sort: String, limit: Int, start: Int, where: JSON): [Article]
2019-07-24 11:16:40 +02:00
id: ID!
}
input GroupingredientsInput {
name: String!
quantity: Float!
enum: ENUM_GROUPINGREDIENTS_ENUM
pic: ID
article: ID
2019-07-29 14:59:53 +02:00
articles: [ID]
2019-07-24 11:16:40 +02:00
}
2019-04-18 18:47:48 +02:00
input InputID {
id: ID!
}
scalar JSON
"""The `Long` scalar type represents 52-bit integers"""
scalar Long
2019-07-16 18:53:41 +02:00
union Morph = UsersPermissionsMe | UsersPermissionsMeRole | Article | createArticlePayload | updateArticlePayload | deleteArticlePayload | Recipe | createRecipePayload | updateRecipePayload | deleteRecipePayload | Rocketship | createRocketshipPayload | updateRocketshipPayload | deleteRocketshipPayload | Rocketshipmaker | createRocketshipmakerPayload | updateRocketshipmakerPayload | deleteRocketshipmakerPayload | Tag | createTagPayload | updateTagPayload | deleteTagPayload | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | createRolePayload | updateRolePayload | deleteRolePayload | UsersPermissionsUser | createUserPayload | updateUserPayload | deleteUserPayload | MypluginTest
2019-04-18 18:47:48 +02:00
type Mutation {
createArticle(input: createArticleInput): createArticlePayload
updateArticle(input: updateArticleInput): updateArticlePayload
deleteArticle(input: deleteArticleInput): deleteArticlePayload
2019-07-12 14:15:56 +02:00
createRecipe(input: createRecipeInput): createRecipePayload
updateRecipe(input: updateRecipeInput): updateRecipePayload
deleteRecipe(input: deleteRecipeInput): deleteRecipePayload
2019-07-16 18:53:41 +02:00
createRocketship(input: createRocketshipInput): createRocketshipPayload
updateRocketship(input: updateRocketshipInput): updateRocketshipPayload
deleteRocketship(input: deleteRocketshipInput): deleteRocketshipPayload
createRocketshipmaker(input: createRocketshipmakerInput): createRocketshipmakerPayload
updateRocketshipmaker(input: updateRocketshipmakerInput): updateRocketshipmakerPayload
deleteRocketshipmaker(input: deleteRocketshipmakerInput): deleteRocketshipmakerPayload
2019-07-05 14:59:31 +02:00
createTag(input: createTagInput): createTagPayload
updateTag(input: updateTagInput): updateTagPayload
deleteTag(input: deleteTagInput): deleteTagPayload
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 {
type: String!
2019-07-24 11:16:40 +02:00
id: ID!
2019-04-18 18:47:48 +02:00
}
type Query {
article(id: ID!): Article
articles(sort: String, limit: Int, start: Int, where: JSON): [Article]
2019-07-12 14:15:56 +02:00
recipe(id: ID!): Recipe
recipes(sort: String, limit: Int, start: Int, where: JSON): [Recipe]
2019-07-16 18:53:41 +02:00
rocketship(id: ID!): Rocketship
rocketships(sort: String, limit: Int, start: Int, where: JSON): [Rocketship]
rocketshipmaker(id: ID!): Rocketshipmaker
rocketshipmakers(sort: String, limit: Int, start: Int, where: JSON): [Rocketshipmaker]
2019-07-05 14:59:31 +02:00
tag(id: ID!): Tag
tags(sort: String, limit: Int, start: Int, where: JSON): [Tag]
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
2019-06-12 14:34:49 +02:00
userCustomRoute: String
2019-04-18 18:47:48 +02:00
}
2019-07-12 14:15:56 +02:00
type Recipe {
2019-07-24 11:16:40 +02:00
title: String
2019-07-12 14:15:56 +02:00
id: ID!
created_at: DateTime!
updated_at: DateTime!
}
input RecipeInput {
title: String
}
2019-07-16 18:53:41 +02:00
type Rocketship {
2019-07-24 11:16:40 +02:00
name: String
2019-07-30 09:08:10 +02:00
pic: UploadFile
pictures(sort: String, limit: Int, start: Int, where: JSON): [UploadFile]
2019-07-16 18:53:41 +02:00
id: ID!
created_at: DateTime!
updated_at: DateTime!
}
input RocketshipInput {
name: String
2019-07-30 09:08:10 +02:00
pic: ID
pictures: [ID]
2019-07-16 18:53:41 +02:00
}
type Rocketshipmaker {
2019-07-24 11:16:40 +02:00
name: String
2019-07-16 18:53:41 +02:00
id: ID!
created_at: DateTime!
updated_at: DateTime!
}
input RocketshipmakerInput {
name: String
}
2019-04-18 18:47:48 +02:00
input RoleInput {
name: String!
description: String
type: String
permissions: [ID]
users: [ID]
}
2019-07-05 14:59:31 +02:00
type Tag {
name: String
2019-07-24 11:16:40 +02:00
linkedArticles(sort: String, limit: Int, start: Int, where: JSON): [Article]
id: ID!
2019-07-05 14:59:31 +02:00
}
input TagInput {
name: String
2019-07-24 11:16:40 +02:00
linkedArticles: [ID]
2019-07-05 14:59:31 +02:00
}
2019-04-18 18:47:48 +02:00
input TestInput {
type: String!
}
input updateArticleInput {
where: InputID
data: editArticleInput
}
type updateArticlePayload {
article: Article
2019-04-19 17:24:56 +02:00
}
2019-07-12 14:15:56 +02:00
input updateRecipeInput {
where: InputID
data: editRecipeInput
}
type updateRecipePayload {
recipe: Recipe
}
2019-07-16 18:53:41 +02:00
input updateRocketshipInput {
where: InputID
data: editRocketshipInput
}
input updateRocketshipmakerInput {
where: InputID
data: editRocketshipmakerInput
}
type updateRocketshipmakerPayload {
rocketshipmaker: Rocketshipmaker
}
type updateRocketshipPayload {
rocketship: Rocketship
}
2019-04-18 18:47:48 +02:00
input updateRoleInput {
where: InputID
data: editRoleInput
}
type updateRolePayload {
role: UsersPermissionsRole
}
2019-07-05 14:59:31 +02:00
input updateTagInput {
where: InputID
data: editTagInput
}
type updateTagPayload {
tag: Tag
}
2019-04-18 18:47:48 +02:00
input updateUserInput {
where: InputID
data: editUserInput
}
type updateUserPayload {
user: UsersPermissionsUser
}
"""The `Upload` scalar type represents a file upload."""
scalar Upload
type UploadFile {
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]
2019-07-24 11:16:40 +02:00
id: ID!
created_at: DateTime!
updated_at: DateTime!
2019-04-18 18:47:48 +02:00
}
input UserInput {
username: String!
email: String!
provider: String
password: String
resetPasswordToken: String
confirmed: Boolean
blocked: Boolean
role: ID
}
type UsersPermissionsMe {
2019-07-26 10:39:51 +02:00
id: ID!
2019-04-18 18:47:48 +02:00
username: String!
email: String!
confirmed: Boolean
blocked: Boolean
role: UsersPermissionsMeRole
}
type UsersPermissionsMeRole {
2019-07-26 10:39:51 +02:00
id: ID!
2019-04-18 18:47:48 +02:00
name: String!
description: String
type: String
}
type UsersPermissionsPermission {
type: String!
controller: String!
action: String!
enabled: Boolean!
policy: String
role: UsersPermissionsRole
2019-07-24 11:16:40 +02:00
id: ID!
2019-04-18 18:47:48 +02:00
}
type UsersPermissionsRole {
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]
2019-07-24 11:16:40 +02:00
id: ID!
2019-04-18 18:47:48 +02:00
}
type UsersPermissionsUser {
username: String!
email: String!
provider: String
confirmed: Boolean
blocked: Boolean
role: UsersPermissionsRole
2019-07-24 11:16:40 +02:00
id: ID!
created_at: DateTime!
updated_at: DateTime!
2019-04-18 18:47:48 +02:00
}