8000 doc/website: add edit and lastedit info to doc pages by a8m · Pull Request #2800 · ent/ent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

doc/website: add edit and lastedit info to doc pages #2800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 14
Expand Down
2 changes: 1 addition & 1 deletion doc/md/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ query {
## Fields Collection

The collection template adds support for automatic [GraphQL fields collection](https://spec.graphql.org/June2018/#sec-Field-Collection)
for ent-edges using eager-loading. That means, if a query asks for nodes and their edges, entgql will add automatically [`With<E>`](eager-load.md#api)
for ent-edges using eager-loading. That means, if a query asks for nodes and their edges, entgql will add automatically [`With<E>`](eager-load.mdx#api)
steps to the root query, and as a result, the client will execute constant number of queries to the database - and it works recursively.

For example, given this GraphQL query:
Expand Down
4 changes: 2 additions & 2 deletions doc/md/tutorial-todo-gql-field-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ its comments (500). That means, we have `1+50+50+500=601` queries in total.
## Ent Solution

The Ent extension for field collection adds support for automatic [GraphQL fields collection](https://spec.graphql.org/June2018/#sec-Field-Collection)
for associations (i.e. edges) using [eager loading](eager-load.md). That means, if a query asks for nodes and their edges,
`entgql` will automatically add [`With<E>`](eager-load.md#api) steps to the root query, and as a result, the client will
for associations (i.e. edges) using [eager loading](eager-load.mdx). That means, if a query asks for nodes and their edges,
`entgql` will automatically add [`With<E>`](eager-load.mdx) steps to the root query, and as a result, the client will
execute constant number of queries to the database - and it works recursively.

That means, in the GraphQL query above, the client will execute 1 query for getting the users, 1 for getting the photos,
Expand Down
7 changes: 4 additions & 3 deletions doc/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ const config = {
"@docusaurus/preset-classic",
{
"docs": {
"path": "../md",
"showLastUpdateAuthor": false,
"showLastUpdateTime": false,
path: "../md",
editUrl: 'https://github.com/ent/ent/edit/master/doc/md/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./sidebars.js'),
},
"blog": {
Expand Down
0