We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a16f5ed + 4eb9f7d commit 1df3a40Copy full SHA for 1df3a40
schema/schema.js
@@ -29,6 +29,15 @@ const {
29
GraphQLInterfaceType
30
} = graphql;
31
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
+
41
const LocationType = new GraphQLObjectType({
42
name: "Location",
43
fields: () => ({
@@ -73,6 +82,7 @@ const LocationType = new GraphQLObjectType({
73
82
Bch_whlchr: { type: new GraphQLNonNull(GraphQLString) },
74
83
BIKE_PATH: { type: new GraphQLNonNull(GraphQLString) },
75
84
BT_FACIL_TYPE: { type: new GraphQLNonNull(GraphQLString) },
85
+ Ratings: { type: new GraphQLList(ratingsType) },
76
86
77
87
WwoAPI: {
78
88
type: wwo.WwoAPIType,
0 commit comments