Skip to content

Commit 1af7bf9

Browse files
rsill-neo4jmjfwebb
andauthored
Apply suggestions from code review
code sample adjustments Co-authored-by: Michael Webb <28074382+mjfwebb@users.noreply.github.com>
1 parent fc1d25f commit 1af7bf9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/ROOT/pages/ogm/installation.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Assuming a running Neo4j database at "neo4j://localhost:7687" with username "use
5050
import { ApolloServer } from "@apollo/server";
5151
import { startStandaloneServer } from "@apollo/server/standalone";
5252
import { Neo4jGraphQL } from "@neo4j/graphql";
53-
import OGM from "@neo4j/graphql-ogm";
53+
import { OGM } from "@neo4j/graphql-ogm";
5454
import neo4j from "neo4j-driver";
5555
5656
import { createJWT, comparePassword } from "./utils.js"; // example util function, more information below
@@ -73,7 +73,7 @@ const typeDefs = `#graphql
7373
}
7474
`;
7575
76-
const ogm = new OGM.OGM({ typeDefs, driver });
76+
const ogm = new OGM({ typeDefs, driver });
7777
const User = ogm.model("User");
7878
7979
const resolvers = {
@@ -247,7 +247,7 @@ Assuming a running Neo4j database at "bolt://localhost:7687" with username "user
247247
[source, javascript, indent=0]
248248
----
249249
import express from "express";
250-
import OGM from "@neo4j/graphql-ogm";
250+
import { OGM } from "@neo4j/graphql-ogm";
251251
import neo4j from "neo4j-driver";
252252
253253
const driver = neo4j.driver(
@@ -262,7 +262,7 @@ const typeDefs = `
262262
}
263263
`;
264264
265-
const ogm = new OGM.OGM({
265+
const ogm = new OGM({
266266
typeDefs,
267267
driver,
268268
features: { filters: { String: { MATCHES: true } } },

0 commit comments

Comments
 (0)