You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scope=Example::User.where(name: "Greg")scope.first# scope is set to#<JsonApiClient::Query::Builder:0x000055dafec45c50 @klass=Example::Client::User, @primary_key=nil, @pagination_params={"page"=>1, "per_page"=>1}, @path_params={}, @additional_params={}, @filters={:name=>"Greg"}, @includes=[], @orders=[], @fields=[], @to_a=[#<Example::Client::User:@attributes={"type"=>"users", "id"=>1, "name"=>"Greg"}>]>scope.all# will call find on whatever is already there and only return the first recordscope.paginate(page: 10,:per_page: 100).first# will eat all the pagination params and return only the first record
The text was updated successfully, but these errors were encountered:
Example:
The text was updated successfully, but these errors were encountered: