Typescript

gstore-node supports Typescript. Make sure you have installed the Types definition file for @google-cloud/datastore first:
npm install --save @types/google-cloud__datastoreOnce you have installed the types for google Datastore, you just need to create a custom Type for your schema and pass it to the Schema and Model instance.
Let see it with an example
It you want to allow other properties apart from those declared (see explicitOnly option in the Schema options), this is how you would create your Model:
Last updated
Was this helpful?