Hylke Visser 02bae0d652 Remove update validators for immutable fields (#137)
Summary:
This pull request modifies the update builder template so that it no longer generates code to validate immutable fields.

The first commit breaks the integration code by making the `number` field of `Card` immutable (the generated validation code references non-existent fields of `CardUpdate`/`CardUpdateOne`).

The second commit fixes the issue by making the `update/save` template not render validation code for immutable fields.
Pull Request resolved: https://github.com/facebookincubator/ent/pull/137

Differential Revision: D18288633

Pulled By: a8m

fbshipit-source-id: c0361b833a3971f76280d624f16cd7eda2725c1e
2019-11-02 09:05:08 -07:00
2019-10-31 06:31:21 -07:00
2019-08-29 23:22:44 -07:00
2019-09-26 05:59:27 -07:00
2019-08-26 08:02:12 -07:00
2019-10-31 06:31:21 -07:00

ent - An Entity Framework For Go

Simple, yet powerful ORM for modeling and querying data.

  • Schema As Code - model any graph schema as Go objects.
  • Easily Traverse Any Graph - run queries, aggregations and traverse any graph structure easily.
  • Statically Typed And Explicit API - 100% statically typed and explicit API using code generation.
  • Multi Storage Driver - supports MySQL, PostgreSQL, SQLite and Gremlin.

Quick Installation

go get github.com/facebookincubator/ent/cmd/entc

For proper installation using Go modules, visit entgo.io website.

Docs

The documentation for developing and using ent is available at: https://entgo.io

Join the ent Community

See the CONTRIBUTING file for how to help out.

Project Status

ent was developed and maintained by a8m and alexsn from the Facebook Connectivity team. It's currently considered experimental (although we're using it in production), and the roadmap for v1 release is described here.
Read more about the motivation of the project here.

License

ent is licensed under Apache 2.0 as found in the LICENSE file.

Description
An entity framework for Go
Readme Apache-2.0 61 MiB
Languages
Go 100%