Skip to content
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

2.0.0 documentation updates #366

Merged
merged 22 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
96cb578
Docs changes
darrellwarde Jul 27, 2021
744d7c7
Merge branch '2.0.0' into docs/2020-07-27-changes
darrellwarde Jul 28, 2021
f61d9d6
Add unions page back to migration guide
darrellwarde Jul 28, 2021
fba38eb
Document union where changes in migration guide
darrellwarde Jul 28, 2021
6de34c5
Move custom resolvers page down
darrellwarde Jul 28, 2021
ed72819
Ensure contents in type definitions map to underlying pages
darrellwarde Jul 28, 2021
954f370
Documentation changes from editorial comments, aligning frontpage wit…
darrellwarde Jul 28, 2021
1dd8490
Missing summaries in contents
darrellwarde Jul 28, 2021
603d2bc
Restructure following editorial comments
darrellwarde Jul 28, 2021
d1cc0bd
Split out each Mutation operation into separate chapters
darrellwarde Jul 28, 2021
de67f23
Rewrite of getting started guide, with more examples and screenshots
darrellwarde Jul 29, 2021
9ca3243
Add type definitions basics page
darrellwarde Jul 29, 2021
27b4f96
Add documentation for all GraphQL types
darrellwarde Jul 29, 2021
063abab
Fix order of type definitions pages
darrellwarde Jul 29, 2021
30efd3e
Rewrite introduction page with features, interacting and deployment s…
darrellwarde Jul 29, 2021
c17792c
Change documentation for interfaces, highlighting that they are used …
darrellwarde Jul 29, 2021
dc7910c
Fix references to pagination
darrellwarde Jul 29, 2021
939c73e
Continued rewriting and restructuring
darrellwarde Jul 29, 2021
f4322cf
Rework auth content
darrellwarde Jul 29, 2021
f8de5f2
Overhaul API references for both Neo4jGraphQL and OGM
darrellwarde Jul 30, 2021
29f758d
Changes reflecting @danstarns comments
darrellwarde Jul 30, 2021
6e356f2
Merge branch '2.0.0' into docs/2020-07-27-changes
darrellwarde Jul 30, 2021
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
52 changes: 33 additions & 19 deletions docs/antora/content-nav.adoc
Original file line number Diff line number Diff line change
@@ -1,50 +1,64 @@
* xref:index.adoc[]
** xref:introduction/index.adoc[]
** xref:getting-started/index.adoc[]
** xref:type-definitions/index.adoc[]
*** xref:type-definitions/basics/index.adoc[]
*** xref:type-definitions/types/index.adoc[]
*** xref:type-definitions/unions-and-interfaces/index.adoc[]
*** xref:type-definitions/relationships/index.adoc[]
*** xref:type-definitions/access-control/index.adoc[]
*** xref:type-definitions/autogeneration/index.adoc[]
*** xref:type-definitions/cypher/index.adoc[]
*** xref:type-definitions/default-values/index.adoc[]
** xref:custom-resolvers/index.adoc[]
** xref:schema/index.adoc[]
*** xref:schema/queries/index.adoc[]
*** xref:schema/mutations/index.adoc[]
*** xref:schema/filtering/index.adoc[]
*** xref:schema/sorting/index.adoc[]
*** xref:schema/pagination/index.adoc[]
** xref:queries/index.adoc[]
** xref:mutations/index.adoc[]
*** xref:mutations/create/index.adoc[]
*** xref:mutations/update/index.adoc[]
*** xref:mutations/delete/index.adoc[]
** xref:filtering/index.adoc[]
** xref:sorting/index.adoc[]
** xref:pagination/index.adoc[]
*** xref:pagination/offset-based/index.adoc[]
*** xref:pagination/cursor-based/index.adoc[]
** xref:custom-resolvers/index.adoc[]
** xref:auth/index.adoc[]
*** xref:auth/setup/index.adoc[]
*** xref:auth/auth-directive/index.adoc[]
*** xref:auth/authentication/index.adoc[]
*** xref:auth/authorization/index.adoc[]
**** xref:auth/authorization/roles/index.adoc[]
**** xref:auth/authorization/allow/index.adoc[]
**** xref:auth/authorization/where/index.adoc[]
**** xref:auth/authorization/bind/index.adoc[]
**** xref:auth/authorization/roles/index.adoc[]
**** xref:auth/authorization/where/index.adoc[]
** xref:directives/index.adoc[]
** xref:api-reference/index.adoc[]
*** xref:api-reference/neo4jgraphql/index.adoc[]
*** xref:api-reference/ogm/index.adoc[]
** xref:ogm/index.adoc[]
*** xref:ogm/getting-started/index.adoc[]
*** xref:ogm/methods/index.adoc[]
**** xref:ogm/methods/create/index.adoc[]
**** xref:ogm/methods/find/index.adoc[]
**** xref:ogm/methods/count/index.adoc[]
**** xref:ogm/methods/update/index.adoc[]
**** xref:ogm/methods/delete/index.adoc[]
*** xref:ogm/installation/index.adoc[]
*** xref:ogm/examples/index.adoc[]
**** xref:ogm/examples/custom-resolvers/index.adoc[]
**** xref:ogm/examples/rest-api/index.adoc[]
*** xref:ogm/private/index.adoc[]
*** xref:ogm/selection-set/index.adoc[]
*** xref:ogm/api-reference/index.adoc[]
** xref:drivers-and-config/index.adoc[]
**** xref:ogm/api-reference/ogm/index.adoc[]
**** xref:ogm/api-reference/model/index.adoc[]
***** xref:ogm/api-reference/model/create/index.adoc[]
***** xref:ogm/api-reference/model/find/index.adoc[]
***** xref:ogm/api-reference/model/update/index.adoc[]
***** xref:ogm/api-reference/model/delete/index.adoc[]
***** xref:ogm/api-reference/model/count/index.adoc[]
** xref:driver-configuration/index.adoc[]
** xref:guides/index.adoc[]
*** xref:guides/migration-guide/index.adoc[]
**** xref:guides/migration-guide/server/index.adoc[]
**** xref:guides/migration-guide/type-definitions/index.adoc[]
**** xref:guides/migration-guide/queries/index.adoc[]
**** xref:guides/migration-guide/mutations/index.adoc[]
*** xref:guides/rel-migration/index.adoc[]
**** xref:guides/rel-migration/mutations/index.adoc[]
*** xref:guides/v2-migration/index.adoc[]
**** xref:guides/v2-migration/mutations/index.adoc[]
**** xref:guides/v2-migration/unions/index.adoc[]
**** xref:guides/v2-migration/miscellaneous/index.adoc[]
** xref:troubleshooting/index.adoc[]
*** xref:troubleshooting/faqs/index.adoc[]
41 changes: 0 additions & 41 deletions docs/asciidoc/api-reference.adoc

This file was deleted.

5 changes: 5 additions & 0 deletions docs/asciidoc/api-reference/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[api-reference]]
= API Reference

- <<api-reference-neo4jgraphql>>
- <<api-reference-ogm>>
194 changes: 194 additions & 0 deletions docs/asciidoc/api-reference/neo4jgraphql.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
[[api-reference-neo4jgraphql]]
= `Neo4jGraphQL`

== `constructor`

Returns a `Neo4jGraphQL` instance.

Takes an `input` object as a parameter, the supported fields of which are described below.

=== Example

[source, javascript]
----
const neoSchema = new Neo4jGraphQL({
typeDefs,
});
----

[[api-reference-neo4jgraphql-input]]
=== Input

Accepts all of the options from https://github.com/ardatan/graphql-tools/blob/%40graphql-tools/schema%407.1.5/website/docs/generate-schema.md#makeexecutableschemaoptions[`makeExecutableSchema`], plus the additional arguments below:

|===
|Name and Type |Description

|`driver` +
+
Type: https://neo4j.com/docs/javascript-manual/current/[`Driver`]
|An instance of a Neo4j driver.

|`config` +
+
Type: `Neo4jGraphQLConfig`
|Additional Neo4j GraphQL configuration options.
|===

[[api-reference-neo4jgraphql-input-neo4jgraphqlconfig]]
==== `Neo4jGraphQLConfig`

|===
|Name and Type |Description

|`driverConfig` +
+
Type: <<api-reference-neo4jgraphql-input-neo4jgraphqlconfig-driverconfig>>
|Additional driver configuration options.

|`enableRegex` +
+
Type: `boolean`
|Whether to enable RegEx filters, see <<filtering-regex>> for more information.

|`jwt` +
+
Type: <<api-reference-neo4jgraphql-input-neo4jgraphqlconfig-neo4jgraphqljwt>>
|JWT options.

|`queryOptions` +
+
Type: <<api-reference-neo4jgraphql-input-neo4jgraphqlconfig-cypherqueryoptions>>
|Cypher query options, see <<troubleshooting-query-tuning>> for more information.

|`skipValidateTypeDefs` +
+
Type: `boolean`
|Can be used to disable strict type definition validation if you are encountering unexpected errors.
|===

[[api-reference-neo4jgraphql-input-neo4jgraphqlconfig-driverconfig]]
===== `DriverConfig`

|===
|Name and Type |Description

|`database` +
+
Type: `string`
|The name of the database within the DBMS to connect to.

|`bookmarks` +
+
Type: `string` or `Array<string>`
|One or more bookmarks to use for the connection.
|===

[[api-reference-neo4jgraphql-input-neo4jgraphqlconfig-neo4jgraphqljwt]]
===== `Neo4jGraphQLJWT`

|===
|Name and Type |Description

|`secret` +
+
Type: `string`
|The secret used to encode JWT tokens. +
+
*Required* unless passing in decoded tokens.

|`noVerify` +
+
Type: `boolean`
|Disable verification of JWT signatures, only decode.

|`rolesPath` +
+
Type: `string`
|Dot path of location of roles within JWT token.
|===

[[api-reference-neo4jgraphql-input-neo4jgraphqlconfig-cypherqueryoptions]]
===== `CypherQueryOptions`

All options are enum types imported from `@neo4j/graphql`, for example:

[source, javascript]
----
const { CypherRuntime } = require("@neo4j/graphql");
----

|===
|Name and Type |Description

|`runtime` +
+
Type: `CypherRuntime`
|Possible options: +
+
- `CypherRuntime.INTERPRETED` +
- `CypherRuntime.SLOTTED` +
- `CypherRuntime.PIPELINED`

|`planner` +
+
Type: `CypherPlanner`
|Possible options: +
+
- `CypherPlanner.COST` +
- `CypherPlanner.IDP` +
- `CypherPlanner.DP`

|`connectComponentsPlanner` +
+
Type: `CypherConnectComponentsPlanner`
|Possible options: +
+
- `CypherConnectComponentsPlanner.GREEDY` +
- `CypherConnectComponentsPlanner.IDP`

|`updateStrategy` +
+
Type: `CypherUpdateStrategy`
|Possible options: +
+
- `CypherUpdateStrategy.DEFAULT` +
- `CypherUpdateStrategy.EAGER`

|`expressionEngine` +
+
Type: `CypherExpressionEngine`
|Possible options: +
+
- `CypherExpressionEngine.DEFAULT` +
- `CypherExpressionEngine.INTERPRETED` +
- `CypherExpressionEngine.COMPILED`

|`operatorEngine` +
+
Type: `CypherOperatorEngine`
|Possible options: +
+
- `CypherOperatorEngine.DEFAULT` +
- `CypherOperatorEngine.INTERPRETED` +
- `CypherOperatorEngine.COMPILED`

|`interpretedPipesFallback` +
+
Type: `CypherInterpretedPipesFallback`
|Possible options: +
+
- `CypherInterpretedPipesFallback.DEFAULT` +
- `CypherInterpretedPipesFallback.DISABLED` +
- `CypherInterpretedPipesFallback.WHITELISTED_PLANS_ONLY` +
- `CypherInterpretedPipesFallback.ALL`

|`replan` +
+
Type: `CypherReplanning`
|Possible options: +
+
- `CypherReplanning.DEFAULT` +
- `CypherReplanning.FORCE` +
- `CypherReplanning.SKIP`
|===
4 changes: 4 additions & 0 deletions docs/asciidoc/api-reference/ogm.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[api-reference-ogm]]
= `@neo4j/graphql-ogm`

See <<ogm-api-reference-ogm>>.
Loading