0.5.9-collections-crud+spa-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
2025-06-30 21:46:53 +03:00
parent 952b294345
commit 1e2c85e56a
14 changed files with 913 additions and 8 deletions

View File

@@ -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
}
}
`

View File

@@ -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 || ''