File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -227,3 +227,34 @@ revoke select on table public.schema_migrations from anon, authenticated;
227
227
``` sql
228
228
comment on schema public is e' @graphql({"inflect_names": true})' ;
229
229
```
230
+
231
+ 3 . Try the heartbeat to see if pg_graphql can access requests
232
+
233
+ ```
234
+ select graphql_public.graphql(
235
+ null,
236
+ $$ { heartbeat }$$
237
+ )
238
+ ```
239
+
240
+ Returns:
241
+
242
+ ``` json
243
+ { "data" : { "heartbeat" : " 2022-07-28T17:07:07.90513" } }
244
+ ```
245
+
246
+ 4 . Is the ` public_graphql ` schema not exposed properly?
247
+
248
+ Getting an 406 status or error message like:
249
+
250
+ ```
251
+ {
252
+ "message": "The schema must be one of the following: public, storage"
253
+ }
254
+ ```
255
+
256
+ Then be sure to expose the ` graphql_public ` in ` Settings ` > ` Project settings ` > ` API ` .
257
+
258
+ > The schema to expose in your API. Tables, views and stored procedures in this schema will get API endpoints.
259
+
260
+ ![ image] ( https://user-images.githubusercontent.com/1051633/181597157-f9a47a5b-bc6a-49d4-b41e-9c1324b5e2a7.png )
You can’t perform that action at this time.
0 commit comments