Skip to content

GraphQL, schema, pubsub and event triggers

Compare
Choose a tag to compare
@HeyItsJs HeyItsJs released this 29 Sep 16:26
· 938 commits to master since this release
80a5b38

This is a major release of Space Cloud with super exciting new features:

GraphQL support

This release adds GraphQL support for the following features:

  • queries
  • mutations
  • subscriptions
  • calling functions

Cool features:

  • Joins (even cross-database and between database and microservices)
  • Solved N+1 problem using data loader pattern

Note: Space Cloud has added the GraphQL support in a schemaless fashion.

Schema Support

Space Cloud can now create schemas for tables/collections. Schemas serve the purpose of data validation and table creation/modification (in the case of SQL databases). This takes care of modeling relations and foreign keys as well.

Event triggers

Space Cloud can now trigger Space Functions on any database mutations.

Notable features:

  • Configurable retries
  • Event triggers can be scheduled to happen after a delay or at a particular timestamp

Pubsub module

Space Cloud now has a pubsub module which lets you publish and subscribe data. The security rules for the pubsub module works in the same fashion as the file storage module.

Each subscriber can subscribe with a queue name. Space Cloud assigns a random queue name to a subscriber if it does not mentions the queue name. Subscribers in the same queue are load balanced to receive a message.