specs / sql / v0.1
sql v0.1
SQL table mapping directive from the Mesh SQL loader (transport-sql).
1Overview
SQL table mapping directive from the Mesh SQL loader (transport-sql).
https://specs.graphql-mesh.dev/sql/v0.1
ยท raw GraphQL
Stamp: meshSpecUrl('sql') in packages/loaders/sql.
extend schema
@link(
url: "https://specs.graphql-mesh.dev/sql/v0.1"
import: ["@sql"]
)
- Pair with @transport from core/v0.1.
2Schema additions
2.1SqlKind
enum SqlKind {
ROW
ROWS
CONNECTION
COUNT
INSERT
UPDATE
DELETE
}3Directives
3.1@sql
directive @sql(
subgraph: String
table: String!
kind: SqlKind!
where: String
orderBy: String
limit: String
offset: String
first: String
after: String
set: String
selection: String
through: String
) repeatable on FIELD_DEFINITION | OBJECT