json-api-dotnet / JsonApiDotNetCore.MongoDb

MongoDB support for JsonApiDotNetCore.
https://www.jsonapi.net
MIT License
14 stars 9 forks source link

Is there any plan to support relationships? #73

Closed craigedmunds closed 3 months ago

craigedmunds commented 3 months ago

The homepage says "JSON:API relationships are currently not supported. You can use complex object graphs though, which are stored in a single document.", our domain has some resources that aren't suitable for nesting so we want them in separate mongo collections with relationships between them.

bkoelman commented 3 months ago

Probably not anytime soon. This depends on https://jira.mongodb.org/projects/EF/issues/EF-117?filter=allopenissues, which is labeled FY25Q3. Please upvote or comment on that issue.

craigedmunds commented 2 months ago

Whilst that might be a helpful option; I don’t think it does depend on it… many of the other frameworks support it!

They just query the collections separately rather than expect the DB to do it.

craigedmunds commented 2 months ago

We’d be happy to look at implementing and raising a PR if it was wanted & a design agreed

bkoelman commented 2 months ago

I'm open to ideas. What design do you have in mind?

craigedmunds commented 2 months ago

I’m not familiar with the code yet so no idea! Just didn’t want to go away and do it and find we were taking it down a path that wasn’t wanted.