File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,8 @@ ahead" and determine what to request from the database.
537
537
538
538
#### Working with arrays via ` json_array_elements `
539
539
540
- Here's an example of working with a join table, and bulk inserting multiple records from a GraphQL list.
540
+ Here's an example of working with a join table, and bulk inserting multiple
541
+ records from a GraphQL list.
541
542
542
543
``` js
543
544
...
@@ -561,7 +562,7 @@ resolvers: {
561
562
try {
562
563
// Ensure proper formatting. This may not be necessary if not modifying the input
563
564
const elements = JSON .stringify (thingIds .map (thingId => ({ thingId, personId })));
564
-
565
+
565
566
// Bulk insert
566
567
const { rows } = await pgClient .query (`
567
568
INSERT INTO public.persons_things (person_id, thing_id)
You can’t perform that action at this time.
0 commit comments