Open rileyjhardy opened 2 years ago
Ahhh - we do allow for querying sys, but not after doing a join, i suppose... @gburgett can you confirm?
Actually, @rileyjhardy, I believe Page.find_by({ meta: { id: "someid" } })
works... no need for sys
Yep that's the workaround! Still think in an ideal world Riley's query should be handled
we can agree to disagree :trollface: - i think the ideal is that the id is accessed like any other attribute, obfuscating the nuance introduced by contentful's schema... the intent was that it behaved similar to active record.
But yes - if you choose to query mimicking the underlying structure, it should work 😺
Currently the gem does not require specifying "sys" within queries such as...
However we want to accomodate the case where we do provide "sys" since that is the actual structure of the content type. We don't want the request adding an additional "sys" as in the screenshot below.
Below is how the Page object structured