This basically introduces a new column metadata to the files table of type jsonb. The user can populate this with any data it wants by adding a metadata object to the metadata[] field in the multipart-form (metadata field when updating files). For instance:
In addition, we are moving away from the graphql client github.com/hasura/go-graphql-client to github.com/Yamashou/gqlgenc as I was running into some troubles dealing with jsonb objects. This has the side-effect the graphql code is much cleaner and easier to understand (this was long overdue to be honest).
Fixes #134 and #160
This basically introduces a new column
metadata
to thefiles
table of typejsonb
. The user can populate this with any data it wants by adding ametadata
object to themetadata[]
field in the multipart-form (metadata
field when updating files). For instance:In addition, we are moving away from the graphql client
github.com/hasura/go-graphql-client
togithub.com/Yamashou/gqlgenc
as I was running into some troubles dealing with jsonb objects. This has the side-effect the graphql code is much cleaner and easier to understand (this was long overdue to be honest).