Skip to content

Conversation

@duckduckgrayduck
Copy link
Contributor

@duckduckgrayduck duckduckgrayduck commented Apr 7, 2025

When document is not pending:
NotPending

When it is:
Pending

Closes #230

@mitchelljkotler
Copy link
Member

Since this can have at most one record, does this one really need to be in a list? I guess it keeps it consistent with the bulk view, but it seems unnecessary. @eyeseast What would be convenient to consume from the frontend?

@eyeseast
Copy link
Contributor

I was going to raise a similar point. I think returning an object makes sense and is consistent with everything else. It's not a dealbreaker -- I can deal with a one-item list. But everything else returns an object for a single record.

@mitchelljkotler
Copy link
Member

What should the response be if the document is not pending? null? {}?

@duckduckgrayduck duckduckgrayduck merged commit 9b3efcf into master Apr 10, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get pending status for a single document

3 participants