+4
-4
notes/quickslice-migration.md
+4
-4
notes/quickslice-migration.md
···
87
87
headers: { 'Content-Type': 'application/json' },
88
88
body: JSON.stringify({
89
89
query: `
90
-
query GetRecords($did: String!) {
91
-
yourLexiconRecords(
90
+
query GetStatuses($did: String!) {
91
+
ioZzstoatzzStatusRecords(
92
92
where: { did: { eq: $did } }
93
93
orderBy: { createdAt: DESC }
94
94
first: 50
95
95
) {
96
-
nodes { uri did createdAt /* your fields */ }
96
+
nodes { uri did emoji text createdAt }
97
97
}
98
98
}
99
99
`,
···
102
102
});
103
103
```
104
104
105
-
the query name (`yourLexiconRecords`) is auto-generated from your lexicon ID - dots become camelCase (e.g., `io.example.foo` → `ioExampleFoos`).
105
+
the query name is auto-generated from your lexicon ID - dots become camelCase (e.g., `io.zzstoatzz.status.record` → `ioZzstoatzzStatusRecords`).
106
106
107
107
no need to write resolvers or schema - it's all generated from the lexicon definitions.
108
108