Swapnull
11/03/2020, 5:15 PMt.list.json
with the nexus framework but it doesn't seem to exist now I have switch to @nexus/schema
. Does anybody know what an alternative of this would be?Swapnull
11/03/2020, 5:17 PMt.list.json("images", (supplier: any) => user.userImages.images);
where data is
user: {
userImages: {
images: [ {id: 1234}, { id: 2345 } ]
}
}
Sytten
11/03/2020, 5:42 PMSytten
11/03/2020, 5:43 PMSytten
11/03/2020, 5:44 PMSytten
11/03/2020, 5:45 PMSwapnull
11/03/2020, 5:51 PMexport const json = scalarType({
name: "json",
asNexusMethod: "json",
description: "json",
});
Sytten
11/03/2020, 5:53 PMSytten
11/03/2020, 5:54 PM