Skip to content

Commit 45c327c

Browse files
authored
user schema doesn't have landmarks
1 parent 99bd29b commit 45c327c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/resolvers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const nanoid = customAlphabet(alphabet, 6);
1616
const resolvers = {
1717
Query: {
1818
hello: () => "Hello world!",
19-
me: (_parent, _args, { user }) => user.populate("landmarks").populate("beacons.leader"),
19+
me: (_parent, _args, { user }) => user.populate("beacons.leader"),
2020
beacon: async (_parent, { id }, { user }) => {
2121
const beacon = await Beacon.findById(id).populate("landmarks").populate("leader");
2222
if (!beacon) return new UserInputError("No beacon exists with that id.");

0 commit comments

Comments
 (0)