ortonomy / fling-server

fling-server is a node.js postgraphql backend for a flingapp front-end.
GNU General Public License v3.0
1 stars 3 forks source link

Move the user table into a new schema, so that default mutations are not generated on the user tables #11

Closed ortonomy closed 6 years ago

ortonomy commented 7 years ago

postgrahpql generates some really useful CRUD operations on each table in the schema that is set in the connection string the postgraphql server.

However, specifically for users (registration, update, delete, login) we'll want custom functions. The only way to do this is to 'hide' the user tables out of the schema that the connection string specifies.

Likely we'll have

flingapp[.userfunction] (anon, user, admin access) does stuff in flingapp_hidden (user, admin access) does stuff in flingapp_private (admin access)

ortonomy commented 7 years ago

Changed the listing so it's

flingapp[.user_function] (anon, register, login) does stuff in flingapp_custom[.function] does stuff in flingapp_private[.function]

ortonomy commented 6 years ago

Done!