M220P Paging Ticket

I need some clarification… In the code for the ticket is

 query, sort, project = build_query_sort_project(filters)

Is this the same as:
query = build_query_sort_project(filters)
sort = build_query_sort_project(filters)
project = build_query_sort_project(filters)

If memory serves me correct it is just a shorthand method to declare multiple variables… So… in essence the query, sort and project variable each call the builder function with their portion of the filters variable right?

Hey @David_Thompson,

Yes, you are correct! :smile: The build_query_sort_project method constructs the query, sort, and projection, and then that query is executed by the get_movies method.


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.