Skip to content
Permalink
Browse files

chore(tests): fix nested test (#166)

  • Loading branch information
goldcaddy77 committed Jul 27, 2019
1 parent c58aaee commit d7850635cbc18978804043987febc76a98926c58
@@ -15,63 +15,123 @@ Array [
"createdById": "abc123",
"dishes": Array [
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 0",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 1",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 2",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 3",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 4",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 5",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 6",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 7",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 8",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 9",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 10",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 11",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 12",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 13",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 14",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 15",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 16",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 17",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 18",
},
Object {
"kitchenSink": Object {
"stringField": "My String",
},
"name": "Dish 19",
},
],
@@ -77,11 +77,9 @@ describe('server', () => {
floatField
dishes {
name
# TODO: why can't we nest 2 levels deep - something broken
# kitchenSink {
# id
# stringField
# }
kitchenSink {
stringField
}
}
createdById
updatedById
@@ -33,7 +33,7 @@ export class DishResolver {
@Authorized('kitchenSink:read')
@FieldResolver(() => KitchenSink)
kitchenSink(@Root() dish: Dish, @Ctx() ctx: BaseContext): Promise<KitchenSink> {
return ctx.dataLoader.loaders.Dish.kichenSink.load(dish);
return ctx.dataLoader.loaders.Dish.kitchenSink.load(dish);
}

@Authorized('dish:read')

0 comments on commit d785063

Please sign in to comment.
You can’t perform that action at this time.