-
Notifications
You must be signed in to change notification settings - Fork 1.5k
how to insert an object
#2427
-
Can I insert a string, "object", into a document with save()?
Model::save(
[
"store": {
"id": 1,
"name": "Store1",
"theme": {
"colors": {
"text": {
"primary": "#683E9D",
"secondary": "#1a202c"
},
"header": {
"primary": "#683E9D",
"secondary": "#1a202c"
},
"pallete": {
"primary": "#683E9D",
"secondary": "#1a202c"
}
}
},
"domain": "shop.domain.com",
"status": 1,
"subdomain": null,
"store_code": "bd51d5e4-a0d6-4944-a9cc-8586c6b0c49c",
"is_marketplace": 1,
"iframe_google_maps": null
}
]
);
When I do that, it creates ObjectId, created_at and updated_at only.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment