Contentful logo

Contentful Community

How to get only few fields of an Asset?

I’m looking to extract only images(through a custom Class) with their title, description and url, and doing it through Asset quite cumbersome because it has way too much data and I need to optimize the size of the load.

Is there any simpler Contentful class or a way to query specific fields and map them to a custom class?

You can do custom mapping yourself by using a custom converter like in this example: https://github.com/contentful/contentful.net/issues/197