Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ new Neo4jGraphQL({
});
----

[[authentication-and-authorization-jwt]]
== JWT

By default, filtering is available on https://www.rfc-editor.org/rfc/rfc7519#section-4.1[the registered claim names] in the JWT specification.
Expand Down
7 changes: 3 additions & 4 deletions modules/ROOT/pages/getting-started/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ image::neo4j-aura-dashboard.png[width=500]

=== Using a Neo4j database

For a database located at the default "bolt://localhost:7687" (see more about https://neo4j.com/docs/operations-manual/current/configuration/ports[port configuration]), with the username "neo4j" and the password "password", add the following to the bottom of your `index.js` file:
For a database located at the default "neo4j://localhost:7687" (see more about https://neo4j.com/docs/operations-manual/current/configuration/ports[port configuration]), with the username "neo4j" and the password "password", add the following to the bottom of your `index.js` file:

[source, javascript, indent=0]
----
const driver = neo4j.driver(
"bolt://localhost:7687",
"neo4j://localhost:7687",
neo4j.auth.basic("username", "password")
);

Expand All @@ -131,7 +131,6 @@ const server = new ApolloServer({
});

const { url } = await startStandaloneServer(server, {
context: async ({ req }) => ({ req }),
listen: { port: 4000 },
});

Expand Down Expand Up @@ -179,7 +178,7 @@ const typeDefs = `#graphql
`;

const driver = neo4j.driver(
"bolt://localhost:7687",
"neo4j://localhost:7687",
neo4j.auth.basic("username", "password")
);

Expand Down
4 changes: 2 additions & 2 deletions modules/ROOT/pages/ogm/reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The following sections work as a reference guide to all functionalities in OGM a

|`constructor`
|Returns an `OGM` instance.
Takes an `input` object as a parameter, which is then passed to the `Neo4jGraphQL` constructor. Supported options are listed in the documentation for xref::reference/api-reference/neo4jgraphql.adoc[`Neo4jGraphQL`].
Takes an `input` object as a parameter, which is then passed to the `Neo4jGraphQL` constructor.
a|
[source, javascript, indent=0]
----
Expand All @@ -27,7 +27,7 @@ const ogm = new OGM({

|`init`
|Asynchronous method to initialize the OGM.
Internally, calls xref::reference/api-reference/neo4jgraphql.adoc#api-reference-getschema[`Neo4jGraphQL.getSchema()`] to generate a GraphQL schema, and stores the result.
Internally, calls `Neo4jGraphQL.getSchema()` to generate a GraphQL schema, and stores the result.
Initializes any models which have been created before this execution, and will throw an error if any of them are invalid.
a|
[source, javascript, indent=0]
Expand Down
3 changes: 3 additions & 0 deletions modules/ROOT/pages/type-definitions/directives/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ of any required fields that is passed as arguments to the custom resolver.
| xref::/type-definitions/directives/autogeneration.adoc#type-definitions-autogeneration-id[`@id`]
| Marks a field as the unique ID for an object type, and allows for autogeneration of IDs.

| xref::/authentication-and-authorization/configuration.adoc#authentication-and-authorization-jwt[`@jwtClaim`]
| Marks a field as the unique ID for an object type, and allows for autogeneration of IDs.

| xref::/type-definitions/directives/default-values.adoc#type-definitions-default-values-limit[`@limit`]
| Used on nodes to inject values into Cypher `LIMIT` clauses.

Expand Down