Closed inyono closed 3 years ago
@anbestCL: There are now helpers to handle the connection stuff (i.e. returning totalCount, nodes, edges etc.). See https://github.com/serlo/api.serlo.org/blob/master/src/graphql/schema/notification/resolvers.ts#L64 for a usage example.
There's a work-in-progress PR https://github.com/serlo/api.serlo.org/pull/24 that might help.
@inyono Comments do only have a date
field since they cannot be edited currently. Are the fields createdAt
and updatedAt
already for the future comment system?
createdAt
and updatedAt
are the fields we want to have in the long-term. Since we don't want the API to change later, we should already implement those (by setting both to the existing date
field).
Status
We want to add threads to the uuid type. So no additional root query necessary. Something like:
Furthermore, we need mutations for various types of actions:
Required legacy API endpoints
/api/threads/:object-id
returns all the threads for the object with the given id (with thread ids only)/api/thread/:id
returns the thread with the given id (including its comments)/api/create-thread
creates a thread