Q027error

Unknown keyword argument

A directive was given a keyword argument it does not accept.

db/queries/example.sql:1:30: error[Q027]: unknown keyword argument "optinal" on sgl.query
help: did you mean "optional"?
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

Each directive accepts a fixed set of keyword arguments. When the key is close to one of them, the diagnostic suggests it.

How to fix it

Use the suggested key, or remove the argument.

In your terminal

$ sgl explain Q027

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