Tips on starting Hygraph project without using starter template

  • Programming tips

Written at 08 November 2023, 20:06 (UTC+7) Asia/Jakarta

Published at 09 November 2023, 00:00 (UTC+7) Asia/Jakarta

Since I went through the pain of realizing the Public Content API not given permission, I thought I need to share it with you to avoid the same pain 😂😭

Tips #1: Create 2 permission for "Read all model on Published stage" and "Read all versions"

If you see the "Public Content API" section showing "Would you like us to initialize some defaults", click the "Yes, initialize defaults" button. Hygraph will create the "Read all models on stage Published for all locales" permission.
The second permission, you have to create it by yourself. Click the "+ Add Permission" and select "Read versions" Rule, then click "Add". For the Model, leave it at "All" option.

Tips #2: Do the same thing from Tips #1 but in Permanent Auth Token section

This step should be the same as Tips #1.