Answer the question
In order to leave comments, you need to log in
How to implement such nosql, mongodb, mongoid structure?
Hello. Sketched such a database schema
{
{
"className": String,
"classMethods": [{
"methodName": String,
"description": String,
"exampleCode": String,
"sourceCode" : String
},
{
"methodName": String,
"description": String,
"exampleCode": String,
"sourceCode" : String
}]
},
{
"anotherClassName": String,
"anotherClassMethods": [{
"methodName": String,
"description": String,
"exampleCode": String,
"sourceCode" : String
},
{
"methodName": String,
"description": String,
"exampleCode": String,
"sourceCode" : String
}]
}
}
class MyClass
include Mongoid::Document
field :name, type: String
field :methods, type: Array
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question