Skip to content

Instantly share code, notes, and snippets.

@fwojciec
Created January 20, 2020 16:13
Show Gist options
  • Save fwojciec/27de6f7eccd68c5b602dc3d7929589c6 to your computer and use it in GitHub Desktop.
Save fwojciec/27de6f7eccd68c5b602dc3d7929589c6 to your computer and use it in GitHub Desktop.
gqlserver2: dataloaders12
-- name: ListAgentsByAuthorIDs :many
SELECT agents.*, authors.id AS author_id FROM agents, authors
WHERE agents.id = authors.agent_id AND authors.id = ANY($1::bigint[]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment