מנויי רשומות מורכבים
בדוגמאות הבאות, יש לנו טבלה בשם students, המכילה שדות ויחסים כמו id, firstName, email ו-age.
מנויים עם מסננים
Section titled “מנויים עם מסננים”ניתן להירשם לרשומות בודדות ורשומות קשורות שנוצרות, מתעדכנות ונמחקות באמצעות פעולת מנוי GraphQL שנוצרת אוטומטית על ידי Archie Core.
האופרטורים הזמינים
Section titled “האופרטורים הזמינים”| אופרטור | דוגמת שימוש |
|---|---|
eq | status = "active" |
neq | type != "admin" |
gt | age > 18 |
lt | price < 100 |
gte | score >= 80 |
lte | attempts <= 3 |
contains | name contains "john" |
startsWith | email startsWith "admin" |
endsWith | domain endsWith ".com" |
תנאים מרובים (AND לוגי)
Section titled “תנאים מרובים (AND לוגי)”מוטציית GraphQL
Section titled “מוטציית GraphQL”mutation createNewSubscription($input: SubscriptionInput!) { system { createSubscription(input: $input) { id active name } }}משתנים
Section titled “משתנים”{ "input": { "name": "students_create_gte_lte", "description": "Subscription - students table - create - gte lte", "active": true, "tables": [ { "table": "students", "operations": ["CREATE"], "fields": ["id", "first_name", "email", "age"], "conditions": [ { "field": "age", "operator": "GTE", "value": "25" }, { "field": "age", "operator": "LTE", "value": "50" } ] } ] }}{ "data": { "system": { "createSubscription": { "id": "id_subscription", "active": true, "name": "students_create_gte_lte" } } }}טבלאות מרובות
Section titled “טבלאות מרובות”מוטציית GraphQL
Section titled “מוטציית GraphQL”mutation createNewSubscription($input: SubscriptionInput!) { system { createSubscription(input: $input) { id active name } }}משתנים
Section titled “משתנים”{ "input": { "name": "multiple_tables", "description": "Subscription multiple tables", "active": true, "tables": [ { "table": "students", "operations": ["CREATE"], "fields": ["id", "first_name", "email", "age"], "conditions": [ { "field": "age", "operator": "GTE", "value": "30" }, { "field": "age", "operator": "LTE", "value": "60" } ] }, { "table": "courses", "operations": ["UPDATE"], "fields": ["id", "code", "name_course", "price"], "conditions": [ { "field": "price", "operator": "LTE", "value": "500" } ] } ] }}{ "data": { "system": { "createSubscription": { "id": "id_subscription", "active": true, "name": "multiple_tables" } } }}