cancel
Showing results for 
Search instead for 
Did you mean: 

difference between get() and query()

tim-erwin
Champ in-the-making
Champ in-the-making
Hi,

I wonder what are the main/conceptual differences between get() and query() in the RepositoryService. Both accept queries (get() via the Predicate). With both I can get Nodes by submitting UUIDs etc. I see some differences, of course, but they raise questions:

  • query() seems to be faster (started using it for regular browsing which I though get() is better suited for), is that correct?.
  • They return different types. Why?
  • You will know more…
Regards,
Tim
1 REPLY 1

morpheus
Champ in-the-making
Champ in-the-making
Hi,

I wonder what are the main/conceptual differences between get() and query() in the RepositoryService. Both accept queries (get() via the Predicate). With both I can get Nodes by submitting UUIDs etc. I see some differences, of course, but they raise questions:
is there a result for this question?  would also be very interesting for me!