Skip to content

Commit 1df3a40

Browse files
committed
no real change. fixing conflicts.
2 parents a16f5ed + 4eb9f7d commit 1df3a40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

schema/schema.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ const {
2929
GraphQLInterfaceType
3030
} = graphql;
3131

32+
let ratingsType = new GraphQLObjectType({
33+
name: "Object",
34+
fields: () => ({
35+
_id: { type: GraphQLID },
36+
user: { type: GraphQLInt },
37+
rating: { type: GraphQLInt }
38+
})
39+
});
40+
3241
const LocationType = new GraphQLObjectType({
3342
name: "Location",
3443
fields: () => ({
@@ -73,6 +82,7 @@ const LocationType = new GraphQLObjectType({
7382
Bch_whlchr: { type: new GraphQLNonNull(GraphQLString) },
7483
BIKE_PATH: { type: new GraphQLNonNull(GraphQLString) },
7584
BT_FACIL_TYPE: { type: new GraphQLNonNull(GraphQLString) },
85+
Ratings: { type: new GraphQLList(ratingsType) },
7686

7787
WwoAPI: {
7888
type: wwo.WwoAPIType,

0 commit comments

Comments
 (0)