Skip to content

Catalog Endpoints Part 1 #926

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Conversation

DarthMax
Copy link
Contributor

@DarthMax DarthMax commented Jul 31, 2025

ref GDSA-75

Copy link

netlify bot commented Jul 31, 2025

Deploy Preview for neo4j-graph-data-science-client canceled.

Name Link
🔨 Latest commit 61d04e4
🔍 Latest deploy log https://app.netlify.com/projects/neo4j-graph-data-science-client/deploys/6891161109e21b000826300f

@DarthMax DarthMax force-pushed the catalog_endpoints branch from 41eba1a to 4f96f34 Compare July 31, 2025 13:15
Copy link
Contributor

@FlorentinD FlorentinD left a comment

Choose a reason for hiding this comment

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

Nice

Mainly smaller suggestions

Comment on lines 69 to 70
class GraphListResult(BaseModel):
model_config = ConfigDict(alias_generator=to_camel)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class GraphListResult(BaseModel):
model_config = ConfigDict(alias_generator=to_camel)
class GraphListResult(BaseModel, alias_generator=to_camel):

its allowed to be passed like this.
Easier to not confuse with the actual fields.
(see for reference -- https://github.com/neo4j/python-graph-visualization/blob/553f47130b514d7d93f5c3206d1eb9a32958b846/python-wrapper/src/neo4j_viz/node.py#L29)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uh that is nice. I was generally thinking if we might want to introduce our own base class for all those results, that one could already define all the necessary options. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense to me 👍

Comment on lines 94 to 95
class GraphFilterResult(BaseModel):
model_config = ConfigDict(alias_generator=to_camel)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class GraphFilterResult(BaseModel):
model_config = ConfigDict(alias_generator=to_camel)
class GraphFilterResult(BaseModel, alias_generator=to_camel)):

Comment on lines +67 to +68


Copy link
Contributor

Choose a reason for hiding this comment

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

no project?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, project is very implementation dependent, for Cypher+Plugin it will be native projection, Arrow+Session -> remote projection, Arrow + Plugin?? that is why I skipped that.

@DarthMax DarthMax force-pushed the catalog_endpoints branch from 66f3c1b to 0646005 Compare August 1, 2025 09:02
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.

2 participants