relation endpoint progress
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "matador/object/relation_endpoint.hpp"
|
||||
|
||||
namespace matador::object {
|
||||
relation_endpoint::relation_endpoint(std::string field_name, relation_type type, const std::shared_ptr<schema_node> &node)
|
||||
: field_name_(std::move(field_name))
|
||||
, type_(type)
|
||||
, node_(node) {
|
||||
}
|
||||
|
||||
std::string relation_endpoint::field_name() const {
|
||||
return field_name_;
|
||||
}
|
||||
|
||||
relation_type relation_endpoint::type() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
const schema_node &relation_endpoint::node() const {
|
||||
return *node_;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user