mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc: fix Github Link entgo.io -> github.com/ent (#1257)
* doc: fix github link * doc: fix Link entgo.io -> github.com/ent
This commit is contained in:
@@ -88,7 +88,7 @@ func VersionHook() ent.Hook {
|
||||
The preferred way for writing such an extension is to use [ent.Mixin](schema-mixin.md). Use the `Fields` option for
|
||||
setting the fields that are shared between all schemas that import the mixed-schema, and use the `Hooks` option for
|
||||
attaching a mutation-hook for all mutations that are being applied on these schemas. Here's an example, based on a
|
||||
discussion in the [repository issue-tracker](https://entgo.io/ent/issues/830):
|
||||
discussion in the [repository issue-tracker](https://github.com/ent/ent/issues/830):
|
||||
|
||||
```go
|
||||
// AuditMixin implements the ent.Mixin for sharing
|
||||
@@ -182,7 +182,7 @@ users := client.User.
|
||||
```
|
||||
|
||||
For more examples, go to the [predicates](predicates.md#custom-predicates) page, or search in the repository
|
||||
issue-tracker for more advance examples like [issue-842](https://entgo.io/ent/issues/842#issuecomment-707896368).
|
||||
issue-tracker for more advance examples like [issue-842](https://github.com/ent/ent/issues/842#issuecomment-707896368).
|
||||
|
||||
#### How to add custom predicates to the codegen assets?
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ The `schema/snapshot` option tells `entc` (ent codegen) to store a snapshot of t
|
||||
and use it to automatically solve merge conflicts when user's schema can't be built.
|
||||
|
||||
This option can be added to projects using the `--feature schema/snapshot` flag, but please see
|
||||
[ent/ent/issues/852](https://entgo.io/ent/issues/852) to get more context about it.
|
||||
[ent/ent/issues/852](https://github.com/ent/ent/issues/852) to get more context about it.
|
||||
|
||||
#### Schema Config
|
||||
|
||||
|
||||
@@ -126,10 +126,10 @@ func (User) Fields() []ent.Field {
|
||||
|
||||
## Examples
|
||||
- A custom template for implementing the `Node` API for GraphQL -
|
||||
[Github](https://entgo.io/ent/blob/master/entc/integration/template/ent/template/node.tmpl).
|
||||
[Github](https://github.com/ent/ent/blob/master/entc/integration/template/ent/template/node.tmpl).
|
||||
|
||||
- An example for executing external templates with custom functions. See [configuration](https://entgo.io/ent/blob/master/examples/entcpkg/ent/entc.go) and its
|
||||
[README](https://entgo.io/ent/blob/master/examples/entcpkg) file.
|
||||
- An example for executing external templates with custom functions. See [configuration](https://github.com/ent/ent/blob/master/examples/entcpkg/ent/entc.go) and its
|
||||
[README](https://github.com/ent/ent/blob/master/examples/entcpkg) file.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user