barrettj12 / chords

A web app for viewing my chord collection.
https://chords.fly.dev
GNU Affero General Public License v3.0
0 stars 0 forks source link

API v1 with GraphQL #25

Closed barrettj12 closed 1 year ago

barrettj12 commented 1 year ago

Create a v1 of the chords API using GraphQL.

The new API schema lives in api.graphql. The server-side code is generated using gqlgen.

TODO

barrettj12 commented 1 year ago

This change probably necessitates a new data model too, since artists/albums are now their own entities, rather than something derived from songs.

barrettj12 commented 1 year ago

This explains how to do custom resolvers for a type: https://gqlgen.com/getting-started/

barrettj12 commented 1 year ago

Some more thoughts:

barrettj12 commented 1 year ago

We now have a fully functional GraphQL API (for queries / GET requests only). Let's wire this up to the real server, then I think this is a good spot to merge.

Next logical steps are: