JSPM

loopback-connector-gclouddatastore

1.0.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q28023F
  • License ISC

Google Cloud Datastore Connector for Loopback.io

Package Exports

  • loopback-connector-gclouddatastore

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback-connector-gclouddatastore) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

loopback-connector-gcdatastore

Google Cloud Datastore Connector for Loopback.io

Installation

npm install loopback-connector-gclouddatastore --save

Setup datasources.json

  "gcdatastore": {
    "name": "gcdatastore",
    "connector": "loopback-connector-gclouddatastore",
    "projectId": "gcloud-project-id",
    "namespace": "datastore-namespace"
  }

Setup model-config.json

  "options": {
    "remoting": {
      "sharedMethods": {
        "*": false,
        "find": true,
        "create": true,
        "update": true,
        "findById": true,
        "deleteById": true
      }
    }
  }

To support relations in order to create Key references in datastore

Add the following configuration to your model

  "properties": {
    ...
    "parent": {
      "type": "string",
      "required": true
    }
  },
  "relations": {
    "parentEntity": {
      "model": "parentEntityModel",
      "foreignKey": "parent",
      "type": "belongsTo"
    }
  }

Currently working operations

find, findById, create, update, deleteById

Currently filtering operators

and, order, sort