Skip to content

Commit

Permalink
Graphql helper (#1733)
Browse files Browse the repository at this point in the history
* Tidied tests and broke graphql out - added new graph func and tests

* Added stubs for remote graph/node/edge

* Rejigged tests, added delete to python edge

* More test packaging
Fixed missing DTime on python properties
Fixed Prop->Graphql parsing
Added add_constant_properties and update_constant_properties to graph

* added properties and new make function

* Renamed make tidy

* Add add_node

* Add add_edge delete_edge

* Added all node functions

* finished edges

* Added new classes to docs and added some helpers in make

* fixed to_json

* Fixed issue with inner maps

* Fixed batch nodes

* finished add edges

* Fixed docs, better error messages

* Fixed issue with importing node/edge with int ID

---------

Co-authored-by: Ben Steer <[email protected]>
Co-authored-by: Ben Steer <[email protected]>
Co-authored-by: Ben Steer <[email protected]>
Co-authored-by: Ben Steer <[email protected]>
  • Loading branch information
5 people authored Sep 2, 2024
1 parent b371137 commit a6eb846
Show file tree
Hide file tree
Showing 55 changed files with 6,750 additions and 4,171 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ prost-build = "0.13.1"
lazy_static = "1.4.0"
pest = "2.7.8"
pest_derive = "2.7.8"
minijinja = "2.2.0"
sqlparser = "0.47"


datafusion = { version = "40" }
futures = "0.3"
arrow = { version = "52" }
Expand All @@ -136,4 +138,5 @@ arrow-schema = { version = "52" }
arrow-data = { version = "52" }
arrow-array = { version = "52" }


moka = { version = "0.12.7", features = ["sync"] }
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,15 @@ pull-storage: activate-storage
git submodule update --init --recursive

stubs:
cd python && ./scripts/gen-stubs.py && mypy python/raphtory/**/*.pyi
cd python && ./scripts/gen-stubs.py && mypy python/raphtory/**/*.pyi

python-fmt:
cd python && black .

tidy: rust-fmt stubs python-fmt

build-python:
cd python && maturin develop -r --features storage

python-docs:
cd docs && make html
5 changes: 3 additions & 2 deletions docs/source/reference/graphql/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ GraphQL
This page gives an overview of GraphQL functions

.. toctree::
:maxdepth: 3
:hidden:
:maxdepth: 2

client
server
remote_graph

45 changes: 45 additions & 0 deletions docs/source/reference/graphql/remote_graph.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
============
Remote Graph
============

.. autoclass:: raphtory.graphql.RemoteGraph
:autosummary:
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

.. autoclass:: raphtory.graphql.RemoteNode
:autosummary:
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

.. autoclass:: raphtory.graphql.RemoteEdge
:autosummary:
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

.. autoclass:: raphtory.graphql.RemoteNodeAddition
:autosummary:
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

.. autoclass:: raphtory.graphql.RemoteEdgeAddition
:autosummary:
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

.. autoclass:: raphtory.graphql.RemoteUpdate
:autosummary:
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
Loading

0 comments on commit a6eb846

Please sign in to comment.