Skip to content

Instantly share code, notes, and snippets.

@smoothdvd
Last active January 22, 2022 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smoothdvd/d8e09280d84a4d1fe90ef018ad502698 to your computer and use it in GitHub Desktop.
Save smoothdvd/d8e09280d84a4d1fe90ef018ad502698 to your computer and use it in GitHub Desktop.
In Strapi headless CMS V4, if you want add some specific type column (such as tstzrange type PostgreSQL offered), you can code like this
{
...
"attributes": {
"effective_range": {
"type": "string",
"columnType": {
"type": "specificType",
"args": [
"tstzrange"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment