Resolve relationships in .NET Library

When you want to pull content data from a schema field to the API calls section in ClientLibrary, you can fill the relevant model with a fluent parameter or with the data related to its relationships with an attribute.

FROM: 15 Development Suggestions

Example:

For example: by adding an attribute to the relevant property in the data model class, you can specify that this is a reference field and

[ReferenceField(Resolve=true)]
public Blabla TestData {get;set;}

When xContentClient.GetAsnyc() is called, the reference data can be loaded.

Another alternative is to fill these reference fields with the use of xContentClient.WithReference(m => m.TestData, m.XData).GetAsnyc();

Tbh, I don’t want to rebuild GraphQL. I use just that in some projects that I have realized with Squidex.

Actually you are right but managing graphql query on code and parsing the model structure of incoming data etc. can be really tiring. API side is simpler and provides what is desired. Therefore such a simple plugin can pave the way for rapid developments on API side.

But it is not the same, resolving references on the client is 10x more expensive. Just a guess.