Skip to content

Instantly share code, notes, and snippets.

View dabit3's full-sized avatar
🎡
probably nothing

Nader Dabit dabit3

🎡
probably nothing
View GitHub Profile
type Address
@model
@key(name: "byJob", fields: ["jobId", "addressLine1"])
@auth(
rules: [
{ allow: groups, groups: ["Admin"], queries: [get, list], mutations: [update, delete] }
{ allow: public, operations: [read], queries: [get, list], mutations: [create] }
{ allow: private, operations: [read], mutations: [create] }
]
) {