-
Notifications
You must be signed in to change notification settings - Fork 228
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
Can't inflate <class 'neo4j.time.DateTime'> to datetime. #545
Comments
Hi, |
@alexlitvinenko Thanks for answer, i'm not providing anything, i'm just calling StructuredNode.nodes.all() and getting error. Property meet_datetime in cypher has datetime type, was created with following command: |
Try my example: class Meet(StructuredNode):
notes = StringProperty()
meet_datetime = DateTimeProperty()
Meet(notes='test1', meet_datetime=datetime.now()).save()
Meet(notes='test2', meet_datetime=datetime.now()).save()
m = Meet.nodes.all()
print(m) Printed: |
@alexlitvinenko thanks, but which way i can create meet_datetime in cypher and read by neomodel? |
Try this: CREATE (n:Meet)
SET n.notes = 'test 3'
SET n.meet_datetime = datetime().epochSeconds
return n This is how to turn obscure float into pretty datetime string: |
@alexlitvinenko it works, thank you! |
Hi,
im trying to get list of node in neomodel
m = Meet.nodes.all()
and getting this:
Class definition:
meet_datetime property in database:
m.meet_datetime
"""2021-01-27T11:57:49.477000000Z"""
"""2021-01-27T11:57:49.477000000Z"""
"""2021-01-27T11:57:49.477000000Z"""
"""2021-01-27T11:57:49.477000000Z"""
Thanks in advance.
The text was updated successfully, but these errors were encountered: