Q008error

Missing name or command

The short sgl(...) header is missing its name or command keyword argument.

db/queries/example.sql:1:1: error[Q008]: missing 'name' keyword argument on sgl(...)
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

The short form sgl(name: GetUser, command: one) needs both keyword arguments. The usual sgl.query(GetUser, one) form reports a missing argument as Q031 instead.

How to fix it

Add the missing keyword argument, or switch to sgl.query(Name, command).

In your terminal

$ sgl explain Q008

Look for MissingDirective in Seagull's source to see where it is reported.