simongray / sino.study

A modern Chinese dictionary.
http://sino.study/
8 stars 0 forks source link

GraphQL backend #80

Open simongray opened 5 years ago

simongray commented 5 years ago

Using lacinia. See: https://github.com/walmartlabs/lacinia/blob/master/README.md

This would allow queries to be more flexible. I envision a future where data is more split up and loaded on demand.

This would also serve as a specification of the data structures in use for the dictionary or the future grammar analysis. As a part of this refactor, I will simplify and get rid of namespaced keywords in these data structures instead. This will make the REPL experience simpler at the loss of some refactoring capabilities in Cursive, but I feel like it's the right tradeoff.

simongray commented 5 years ago

For the client, see: https://github.com/district0x/graphql-query

There's also https://github.com/oliyh/re-graph, but currently unsure what use case that would be good for.