0.5.9-collections-crud+spa-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s
All checks were successful
Deploy on push / deploy (push) Successful in 6s
This commit is contained in:
@@ -61,3 +61,27 @@ export const DELETE_COMMUNITY_MUTATION = `
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const CREATE_COLLECTION_MUTATION = `
|
||||
mutation CreateCollection($collection_input: CollectionInput!) {
|
||||
create_collection(collection_input: $collection_input) {
|
||||
error
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const UPDATE_COLLECTION_MUTATION = `
|
||||
mutation UpdateCollection($collection_input: CollectionInput!) {
|
||||
update_collection(collection_input: $collection_input) {
|
||||
error
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const DELETE_COLLECTION_MUTATION = `
|
||||
mutation DeleteCollection($slug: String!) {
|
||||
delete_collection(slug: $slug) {
|
||||
error
|
||||
}
|
||||
}
|
||||
`
|
||||
|
@@ -154,3 +154,24 @@ export const GET_TOPICS_QUERY: string =
|
||||
}
|
||||
}
|
||||
`.loc?.source.body || ''
|
||||
|
||||
export const GET_COLLECTIONS_QUERY: string =
|
||||
gql`
|
||||
query GetCollections {
|
||||
get_collections_all {
|
||||
id
|
||||
slug
|
||||
title
|
||||
desc
|
||||
pic
|
||||
amount
|
||||
created_at
|
||||
published_at
|
||||
created_by {
|
||||
id
|
||||
name
|
||||
email
|
||||
}
|
||||
}
|
||||
}
|
||||
`.loc?.source.body || ''
|
||||
|
Reference in New Issue
Block a user