paleobot / pbot-api

MIT License
2 stars 0 forks source link

Consider rewriting update resolvers in javascript #8

Closed NoisyFlowers closed 2 years ago

NoisyFlowers commented 2 years ago

The resolvers that handle delete mutations are all written in javascript. This javascript generates cypher code and uses the Neo4j javascript driver. The advantages of this approach are:

The existing update resolvers are working, but we should consider rewriting them to be similar to the delete resolvers.

aazaff commented 2 years ago

I believe we decided to do this across the board.

NoisyFlowers commented 2 years ago

This is finished. The only resolvers left in schema.graphql are create and update for CharacterInstance. There are unique bits there that do not lend themselves to cypher-generation in javascript.