Commit Graph

1656 Commits

Author SHA1 Message Date
Ariel Mashraki
9e1e8472e9 doc/md: fix predicate examples (#2140) 2021-11-16 13:22:23 +02:00
Rotem Tamir
99ad873ae0 doc/website/blog: adding code screenshot to entoas blogpost (#2139) 2021-11-16 11:52:34 +02:00
allcontributors[bot]
3cbf4d40cd docs: add grevych as a contributor for code (#2138)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-16 10:26:30 +02:00
Ariel Mashraki
6402fc7fe2 Merge pull request #2137 from ent/getoutreach-grevych/sqljson-pattern-matching-predicates
Getoutreach grevych/sqljson pattern matching predicates
2021-11-16 10:21:08 +02:00
Ariel Mashraki
77701d4db6 dialect/sql/sqljson: use the builtin string predciates in sqljson and improve tests 2021-11-16 10:07:34 +02:00
Jeremy Maxey-Vesperman
5645812c73 doc/md: add tutorial for configuring gRPC service method generation 2021-11-16 00:30:33 +02:00
allcontributors[bot]
0a6ca7ee5a docs: add JeremyV2014 as a contributor for doc, code (#2135)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-15 22:59:53 +02:00
MasseElch
ef90b24e23 doc/website/blog: entoas blog post (#2124)
* doc/website/blog: entoas blog post

* doc/website/blog: minor change to footer

* doc/website/blo: apply suggestions from code review

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* doc/website/blog: apply code-review

* doc/website/blog: apply code-review, add image stubs, last minute preparations

* doc/website/blog: correct image sources

* doc/website/blog: last minute changes

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-11-15 21:40:15 +02:00
Amit Shani
c0878f8b62 doc/extension: fix example code (#2132) 2021-11-14 14:19:46 +02:00
Ariel Mashraki
a5fea077a9 dialect/sql: use identifier qualifiers for WHERE clause on upsert
Fixed https://github.com/ent/ent/issues/2126
2021-11-12 23:46:46 +02:00
Ariel Mashraki
12feb4301d doc/predicates: fix json example doc 2021-11-11 20:26:01 +02:00
Ariel Mashraki
7456e95235 doc/predicates: fix json example doc 2021-11-11 20:15:58 +02:00
Ariel Mashraki
0dd7b0d7c3 dialect/sql/sqljson: fix sqlite haskey and add docs 2021-11-11 18:58:28 +02:00
Ariel Mashraki
3ba2b4e173 entc/integration/json: add tests for null literals 2021-11-10 17:24:51 +02:00
Ariel Mashraki
0c5398a11d dialect/sql/sqljson: support comparing values with null literal 2021-11-10 17:24:51 +02:00
Alexander Melentyev
f6c9428978 ci: bump golangci-lint version (#2106) 2021-11-09 20:53:30 +02:00
dependabot[bot]
39eb637a42 build(deps): bump github.com/lib/pq from 1.10.3 to 1.10.4 (#2121)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.3...v1.10.4)

---
updated-dependencies:
- dependency-name: github.com/lib/pq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 19:04:48 +02:00
Ariel Mashraki
ab207c499a entc/gen: minor codegen improvements 2021-11-08 15:56:15 +02:00
Ariel Mashraki
e915765f3b entc/gen: allow scanning nil valuescanner types directly from database
Fixed https://github.com/ent/ent/issues/2116
2021-11-07 23:09:02 +02:00
Ariel Mashraki
dd6c034c2a dialect/sql/schema: support mediumtext field in migration
Fixed https://github.com/ent/ent/issues/2113
2021-11-07 15:37:06 +02:00
Ariel Mashraki
8f88f58713 dialect/sql/sqlgraph: minor refactor changes 2021-11-07 14:01:54 +02:00
allcontributors[bot]
4720063afd docs: add tankbusta as a contributor for doc (#2111) 2021-11-05 13:19:47 +02:00
Christopher Schmitt
657c5c7bad chore: address #2102 by adding mention of Unwrap (#2110) 2021-11-05 10:08:39 +02:00
dependabot[bot]
dffc12d44a build(deps): bump actions/checkout from 2.3.5 to 2.4.0 (#2103)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-04 12:33:46 +02:00
Ariel Mashraki
caa673826a entc/gen/mutation: add IDs method for mutations 2021-11-03 23:16:56 +02:00
Ariel Mashraki
e8e4401d27 dialect/sqltest: use postgres dialect in predicate tests 2021-11-03 13:39:39 +02:00
Ariel Mashraki
02203c3f91 dialect/sqltest: ensure predicates can be reused 2021-11-02 23:01:11 +02:00
Ariel Mashraki
924de2d341 website/blog: minor typo change 2021-11-02 14:35:57 +02:00
Ariel Mashraki
d0118b2da2 website/blog: sync objects in external databases 2021-11-02 14:04:02 +02:00
Alexander Melentyev
147b1f59ae all: small typo fixes (#2095) 2021-11-01 17:47:06 +02:00
Alexander Melentyev
681d03e896 entc/gen: fix DependencyName godoc (#2094) 2021-10-30 22:51:15 +03:00
Ariel Mashraki
51b63c17c0 entc/gen: fix module version extraction when running entc as a package 2021-10-29 09:13:16 +03:00
allcontributors[bot]
59069b7449 docs: add JeremyV2014 as a contributor for code (#2087)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-10-28 21:35:57 +03:00
dependabot[bot]
b308091ed6 build(deps): bump ws from 6.2.1 to 6.2.2 in /doc/website (#2079)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/6.2.1...6.2.2)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:10:48 +03:00
dependabot[bot]
ec676018b9 build(deps): bump url-parse from 1.5.1 to 1.5.3 in /doc/website (#2078)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:10:09 +03:00
dependabot[bot]
adb4c4951e build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /doc/website (#2077)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

---
updated-dependencies:
- dependency-name: dns-packet
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:08:50 +03:00
dependabot[bot]
6759de9980 build(deps): bump path-parse from 1.0.6 to 1.0.7 in /doc/website (#2076)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:08:38 +03:00
dependabot[bot]
51bed1009f build(deps): bump normalize-url from 4.5.0 to 4.5.1 in /doc/website (#2075)
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:08:27 +03:00
Ariel Mashraki
909d24cfc4 entc/gen: support merging dep annotations
This will make it possible to get dependencies
from external extensions.
2021-10-28 11:08:05 +03:00
allcontributors[bot]
4f331e0090 docs: add heliumbrain as a contributor for doc (#2084) 2021-10-28 07:51:25 +03:00
heliumbrain
b2367f2bf0 doc/md: fix typo in tutorial-grpc-generating-proto.md (#2082)
Found a VERY TINY typo when going through the gRPC tutorial :)
2021-10-28 07:48:03 +03:00
dependabot[bot]
49aa38a974 build(deps): bump immer from 8.0.1 to 9.0.6 in /doc/website (#2073)
Bumps [immer](https://github.com/immerjs/immer) from 8.0.1 to 9.0.6.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v8.0.1...v9.0.6)

---
updated-dependencies:
- dependency-name: immer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-27 15:00:40 +03:00
Ariel Mashraki
6538efe71d doc/md: entc config example for codegen (#2074) 2021-10-27 14:24:41 +03:00
Ariel Mashraki
3d0e648356 website: upgrade docusaurus and improve announcement bar 2021-10-27 14:13:00 +03:00
Alexander Melentyev
56016d56d6 entc/gen: remove unused named return (#2069) 2021-10-27 12:37:47 +03:00
Jeffrey Stiles
a98798ebbc doc/tutorial: update todo-gql-mutation-input example (#2063)
* Update tutorial-todo-gql-mutation-input.md

Make example code match latest changes to https://github.com/a8m/ent-graphql-example:

- Renaming fields that accept IDs on mutation_inputs (including https://github.com/a8m/ent-graphql-example/pull/5)
- Removing duplicate fields when edge fields are used (https://github.com/a8m/ent-graphql-example/pull/3)

* Update tutorial-todo-gql-mutation-input.md

Add back the accidental removal of `$input` variable declaration.
2021-10-27 08:18:06 +03:00
Ariel Mashraki
4d1fceb976 doc/codegen: add doc and example for external dependencies.
See #2066
2021-10-27 08:16:20 +03:00
Ariel Mashraki
82eeeb5a1c entc/gen: introduce the entc.Dependency option 2021-10-26 20:33:04 +03:00
Ariel Mashraki
5bbd973ffa doc/graphql: replace templates with extensions (#2064) 2021-10-25 07:52:04 +03:00
Andrey Elenskiy
62d64f2b78 dialect/sql/sqlgraph: use selector's column instead of table's column in HasNeighbors (#2060)
Allows for HasNeighbors' selector to be a generic selector instead of *SelectTable.
A use case for this is doing HasNeighbors* function on materialized queries instead
of on concrete tables only.
2021-10-25 07:46:54 +03:00