Created
October 10, 2019 14:36
-
-
Save PumpkinSeed/efb9400f34827cbea05707b93df46c37 to your computer and use it in GitHub Desktop.
Example data structure for blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type webshop struct { | |
Token string `json:"token"` | |
... | |
PaymentTransactionID string `json:"payment_transaction_id"` | |
Product *product `json:"product" cb_referenced:"product"` | |
Store *store `json:"store,omitempty" cb_referenced:"store"` | |
} | |
type product struct { | |
ID string `json:"id"` | |
.... | |
Status string `json:"status" cb_indexable:"true"` | |
} | |
type store struct { | |
ID string `json:"id"` | |
... | |
Description string `json:"description"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment