Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
634 stars 200 forks source link

How to run a cypher query? #167

Closed miladr0 closed 4 years ago

miladr0 commented 8 years ago

Could you please show me running a cypher query using this package in laravel?

gatewayiQ-LeadDev commented 8 years ago

The idea is to use Eloquent in the way you normally would rather than writting Cypher queries. NeoEloquent enables you to use Laravel Eloquent with a Neo4j database (as Eloquent does not support it natively).

miladr0 commented 8 years ago

@gatewayiQ-LeadDev tnx, but i dont want use eloquent way, i want write pure Cypher queries to execute on neo4j database

gatewayiQ-LeadDev commented 8 years ago

If you want to write Cypher queries instead of using Eloquent the use either the Laravel DB facade or use graphaware/neo4j-php-client rather than vinelab/neoeloquent.

ikwattro commented 8 years ago

@Blackops404

@gatewayiQ-LeadDev is right

omidmaldar commented 8 years ago

see issue number #26 , @thylo shows a way to run Cypher queries while maintaining Neoeloquent Models.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.