Code Monkey home page Code Monkey logo

Comments (8)

gr0uch avatar gr0uch commented on June 13, 2024

What? All linked IDs should come back in the response by default. This is in the unit tests: https://github.com/daliwali/fortune/blob/master/test/all.js#L150

Can you explain further?

from fortune.

wprater avatar wprater commented on June 13, 2024

Should have looked at the tests. It's not working for me right now, there is nothing being returned for this association and I've checked the mongo store. Will double check this and report back if I can get the IDs to return.

Do you have a plan to implement the compound docs?

from fortune.

wprater avatar wprater commented on June 13, 2024

My bad, I found the issue on my end.

Been looking through too many frameworks, and jumping branches.

from fortune.

gr0uch avatar gr0uch commented on June 13, 2024

Yes, compound docs will be implemented as they are a part of the JSON API spec. The spec on those has actually changed a bit recently so I haven't gotten around to it yet.

from fortune.

wprater avatar wprater commented on June 13, 2024

Meanwhile, do you think it's acceptable to just append more resources in the after transformations? Or better to make a separate call?

from fortune.

gr0uch avatar gr0uch commented on June 13, 2024

The context of an after transform is a singular resource and not the entire response, so it's not possible to do this and be compliant with JSON API. Better to just make a separate request for now.

from fortune.

wprater avatar wprater commented on June 13, 2024

Ahh, like just create a new route in express and use the underlying adapter to do as I wish?

from fortune.

gr0uch avatar gr0uch commented on June 13, 2024

You could, but then you would be missing some logic here and here.

from fortune.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.