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.
537537
538538#### Working with arrays via ` json_array_elements `
539539
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.
541542
542543``` js
543544...
@@ -561,7 +562,7 @@ resolvers: {
561562 try {
562563 // Ensure proper formatting. This may not be necessary if not modifying the input
563564 const elements = JSON .stringify (thingIds .map (thingId => ({ thingId, personId })));
564-
565+
565566 // Bulk insert
566567 const { rows } = await pgClient .query (`
567568 INSERT INTO public.persons_things (person_id, thing_id)
You can’t perform that action at this time.
0 commit comments