Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game collections #706

Open
chyyran opened this issue May 4, 2020 · 0 comments
Open

Game collections #706

chyyran opened this issue May 4, 2020 · 0 comments

Comments

@chyyran
Copy link
Member

chyyran commented May 4, 2020

Expose collections as isomorphic to the following GraphQL API

extend type Query {
    collections(where: CollectionsFilter) : Collection {
      collectionId: Uuid!
      collectionName: String!
    }
}

extend type Mutation {
   createCollection(collectionName: String!): Collection
   deleteCollection(collectionName: String!): Collection
}

Games can be added to a collection conventionally by setting a metadata value collection_in_{collectionId} to true.

Since this is exclusively a UI-only feature, we might want to keep this client-local, or alternatively, as an optional plugin that does not affect the main database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant