contentful-userland / contentful.ex

Elixir SDK for the Contentful Delivery API
MIT License
35 stars 30 forks source link

Contentful.SysData missing important information #44

Closed OldhamMade closed 4 years ago

OldhamMade commented 4 years ago

In previous versions, the map that has been replaced with Contentful.SysData contained a number of important fields. These included:

...
  sys: %{
    contentType: %{
      sys: %{
        id: "<content-type-from-model>",  # for example: "author"
        ...
      }
    },
    createdAt: "<created-timestamp>",
    updatedAt: "<updated-timestamp>",
    locale: "<locale-string>",  # eg: "en-GB",
    ...
  }
...

I'd like to update to the latest Contentful version, but my system is reliant on these fields.

Can these fields be returned to the Contentful.Entry/Contentful.Asset or Contentful.SysData structs?

floriank commented 4 years ago

Absolutely.

thanks for reporting!