File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import { createClient } from 'microcms-js-sdk'; //ES6
3434const client = createClient ({
3535 serviceDomain: " YOUR_DOMAIN" , // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
3636 apiKey: " YOUR_API_KEY" ,
37- globalDraftKey: " YOUR_GLOBAL_DRAFT_KEY" , // If need
3837});
3938```
4039
@@ -48,7 +47,6 @@ const { createClient } = microcms;
4847const client = createClient ({
4948 serviceDomain: " YOUR_DOMAIN" , // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
5049 apiKey: " YOUR_API_KEY" ,
51- globalDraftKey: " YOUR_GLOBAL_DRAFT_KEY" , // If need
5250});
5351 </script >
5452```
6058 .get ({
6159 endpoint: ' endpoint' ,
6260 queries: { limit: 20 , filters: ' createdAt[greater_than]2021' },
63- useGlobalDraftKey: false , // This is an option if your have set the globalDraftKey. Default value true.
6461 })
6562 .then ((res ) => console .log (res))
6663 .catch ((err ) => console .log (err));
You can’t perform that action at this time.
0 commit comments