Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexicon: optional aggregated fields on views #684

Merged
merged 3 commits into from
Mar 18, 2023

Conversation

devinivy
Copy link
Collaborator

This makes the aggregated count fields on post and profile views (e.g. post.likeCount, profile.followCount) optional. Also made viewer state optional on the post view, since it falls into a similar category and is already optional on other views. Finally, I removed the deprecated myState field on the profile view.

Resolves #589

@devinivy devinivy mentioned this pull request Mar 17, 2023
@@ -38,8 +38,7 @@
"postsCount": {"type": "integer"},
"creator": {"type": "string"},
"indexedAt": {"type": "string", "format": "datetime"},
"viewer": {"type": "ref", "ref": "#viewerState"},
"myState": {"type": "ref", "ref": "#myState", "description": "Deprecated"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Collaborator

@dholms dholms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really thought there were more of these, but looks like you got em all lol

looks good 👌

@devinivy devinivy merged commit bb02c10 into lex-refactor Mar 18, 2023
@devinivy devinivy deleted the lex/optional-agg-fields branch March 18, 2023 05:40
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.

None yet

2 participants