Skip to content
Discussion options

You must be logged in to vote

Hello @tfrangoullides, for now is not possible to use multiple models for Query params,
this is duplicate of #13448.

About the difference between Depends and Query (Oversimplify).
The first one is used to declare a dependency, is not directly related to query but is used sometimes for query params based on how Fastapi construct the dependency chain.
Query before v115 were used to identify 1 to 1 a single query params. From 115 you can use it to identify all fields of a Pydantic Models as query params.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tfrangoullides
Comment options

@alexhuangc
Comment options

Answer selected by tfrangoullides
Comment options

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
Labels
question Question or problem
4 participants