xiaohutai / jsonapi

[Bolt Extension] JSON API for Bolt CMS
https://market.bolt.cm/view/bolt/jsonapi
MIT License
55 stars 18 forks source link

Get contenttype with a relationship to itself. #51

Closed julioinzunza closed 7 years ago

julioinzunza commented 7 years ago

I have a contenttype related with itself to select related entries by my own. The problem is that jsonapi send an 500 error in my ajax request.

Do you know what problem is?

Raistlfiren commented 7 years ago

@julioinzunza -

Can you please give me more details like what the contentype is like(YAML information) and what version of Bolt and the extension you are running?

Thanks!

Raistlfiren commented 7 years ago

@julioinzunza - ping! Any further updates on this issue? Otherwise, I am closing it.

xiaohutai commented 7 years ago

There's a bug in Bolt with the app['query'] class. I've noticed this issue with some other extensions as well.

Basically, if you do this:

pages:
    (...)
    relations:
        pages:
            (...)

You'll get a QueryException.

See https://github.com/bolt/bolt/issues/6691

xiaohutai commented 7 years ago

Fixed via https://github.com/bolt/bolt/issues/6779