GithubHelp home page GithubHelp logo

pflima92 / google-cloud-datastore-inversify Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 365 KB

Some utilities for the development of Google Cloud Datastore with InversifyJS

License: MIT License

JavaScript 12.26% TypeScript 87.74%
datastore inversify typescript googlecloud gcp inversifyjs google-cloud-datastore

google-cloud-datastore-inversify's People

Contributors

dependabot[bot] avatar pflima92 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

google-cloud-datastore-inversify's Issues

New decorators for Auditing Support

Support to transparently keep track of who created or changed an entity and the point in time this happened.

The intent is to decorate an entity properties, providing simple decorators such as @createdBy, @createdDate, @lastModifiedBy and @lastModifiedDate.

It might be necessary create an additional interface to allow specify the strategy to identify the modifier, it might require additional plugins for different providers, such as express, restify, koa, etc...

Pagination Support

There is no pagination support currently.

An operation should return either a wrapped result or a different interface handling it.

Support for Relationships

Add support for better relationships mapping:

There are three ways to represent relationships between entities that's desired:

Embedded entities stored directly in the field of the containing entity (supported natively)
@Descendant decorated properties for one-to-many relationships (enhancement)
@reference decorated properties for general relationships without hierarchy (enhancement)

Expected Behavior

Check the Road Map & Enhancments for better reference.

Entity being saved with extra attributes

When transporting an entity with extra fields these extra undeclared fields has been saved even when not declared.

Expected Behavior

Save only declared fields.

Steps to Reproduce (for bugs)

Give a class:

@entity(User)
class User{
 @id()
 id: string
 username: string
}

And sending:

{
"id" : "123",
"username" : "foo",
"some_extra_field" : "some_extra_value"
}

The above entity is entirely saved on Datastore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.