We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb2e6aa commit c74d830Copy full SHA for c74d830
1 file changed
src/Migration/Sources/Appwrite/Reader/API.php
@@ -190,8 +190,8 @@ public function queryEqual(string $attribute, array $values): string
190
*/
191
public function queryCursorAfter(Resource|string $resource): string
192
{
193
- if (!\is_string($resource)) {
194
- throw new \InvalidArgumentException('Querying with a cursor through the API requires a string resource ID');
+ if ($resource instanceof Resource) {
+ $resource = $resource->getId();
195
}
196
197
return Query::cursorAfter($resource);
0 commit comments