neo4jrb / activegraph

An active model wrapper for the Neo4j Graph Database for Ruby.
http://neo4jrb.io
MIT License
1.4k stars 276 forks source link

Getting help with neo4J gem #524

Closed chesterl closed 9 years ago

chesterl commented 9 years ago

I started this stackoverflow question http://stackoverflow.com/questions/26456466/neo4j-gem-datetime-datatype just now but it'll likely get lost and unanswered. I wasn't able to find how to work in datetime with the gem because neo4j datatypes are different from active records. I also didn't know where to ask for help as this only coers Issues, pull requests etc.

Some direction please and thank you! Both on the question and where to ask for further help for those that work with neo4j.

subvertallchris commented 9 years ago

I got you on SO but I'll paste the reply here in case anyone else comes across this.

The gem does support DateTime! Add the appropriate properties to your model.

class User
  include Neo4j::ActiveNode
  property :provider
  property :uid
  property :name
  property :oauth_token
  property :auth_expries_at, type: DateTime
end

Stack Overflow is OK to ask questions like this, I review everything tagged with neo4j very regularly. I think most people will turn there first and it's nice to build up a Q/A history. On the other hand, if you're unsure, there's no harm in posting here. You can also email me directly if you have something urgent.