You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we have .one(), .findAll(), .edit(), and .delete() implemented for the resources we expose, it should be possible to write another layer that exposes a GraphQL API using the same adaptor code.
Since we have
.one()
,.findAll()
,.edit()
, and.delete()
implemented for the resources we expose, it should be possible to write another layer that exposes a GraphQL API using the same adaptor code.To do that, one would add another express application here: https://github.com/justicedemocrats/osdi-proxy/blob/master/index.js#L31
Something like
and then write the gqlApp function.
The difficult part is that the schema must be generated dynamically, since not all of the adaptors support all of the same resources. See https://github.com/justicedemocrats/osdi-proxy/blob/master/config/adaptors/ak.js#L15 vs https://github.com/justicedemocrats/osdi-proxy/blob/master/config/adaptors/bsd.js#L13 for example – I haven't implemented the List API on top of BSD yet
The text was updated successfully, but these errors were encountered: