Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

API Platform #3267

Answered by GromNaN
masterbater asked this question in Q&A
Discussion options

https://api-platform.com/docs/laravel/

Will this work in api platform? or do we need to use mongodb/odm for search

You must be logged in to vote

You can use a MongoDB Eloquent Model with API Platform, I did some tests and fixed an issue for that api-platform/core#6658.
But if you hit any problem, please raise an issue.

My mid-term plan is to create a MongoDB package for API platform, that would be agnostic of Eloquent or Doctrine, to unlock the full potential of the database.

Replies: 2 comments 1 reply

Comment options

You can use a MongoDB Eloquent Model with API Platform, I did some tests and fixed an issue for that api-platform/core#6658.
But if you hit any problem, please raise an issue.

My mid-term plan is to create a MongoDB package for API platform, that would be agnostic of Eloquent or Doctrine, to unlock the full potential of the database.

You must be logged in to vote
1 reply
Comment options

One issue for now it that you need to insert at least 1 document in your collection, so that the database schema can be introspected.

Answer selected by masterbater
Comment options

I'm interested in your feedback if you've tried it?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /