I see I can add it to a each of my model structs as a JSONAPIMeta() but those models don't know the count of results, I don't have a way of getting the integer into those objects.
Can't I just tell the jsonapi module what to put in the meta at time of encoding?
can you help me work out how to inject the result count into the meta? i have it in an int64 in my own function
I see I can add it to a each of my model structs as a
JSONAPIMeta()
but those models don't know the count of results, I don't have a way of getting the integer into those objects.Can't I just tell the
jsonapi
module what to put in the meta at time of encoding?