gstore-node
v8.x
v8.x
  • Introduction
  • Getting Started
    • Motivation
    • Installation
    • Create a gstore instance
  • Schema
    • About
    • Type validation
    • Value validation
    • Additional properties settings
    • Schema options
    • Joi Schema
    • Methods
      • path()
      • virtual()
    • Custom methods
  • Model
    • Creation
    • Methods
      • GET
      • UPDATE
      • DELETE
      • excludeFromIndexes()
      • key()
      • sanitize()
      • clearCache()
  • Entity
    • Creation
    • Properties
    • Methods
      • SAVE
      • plain()
      • populate()
      • model()
      • datastoreEntity()
      • validate()
  • Queries
    • @google-cloud Query
    • list()
    • findOne()
    • deleteAll()
    • findAround()
  • Populate
  • Middleware (hooks)
    • About
    • Pre hooks
    • Post hooks
  • Cache / Dataloader
    • Dataloader
    • Cache
  • gstore Methods
    • save()
  • Typescript
  • Appendix
    • Error Codes
    • Credits
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

Motivation

The Google Datastore is an amazingly fast, reliable and flexible database for today's modern applications. But its flexibility and schemaless nature mean that, unless the Datastore is used to save raw data, it is the developer's responsibility to sanitize and validate the properties saved for each entity. This can quickly become a tedious task and this is where a modeling library like gstore-node with its schemas help to ensure the expected values are stored for each entity.

The populate() helpers and the pre & post 'hooks' are also of great help when it comes to working with denormalized data on a NoSQL database.

As gstore-node is built on top of the @google-cloud-node library, all of its API can still be accessed whenever needed through the alias gstore.ds

PreviousGetting StartedNextInstallation

Last updated 6 years ago

Was this helpful?