Rename Connection::new_with_additional_fields to Connection::with_additional_fields and Edge::new_with_additional_fields to Edge::with_additional_fields
This commit is contained in:
parent
6cc92458e1
commit
a2239fd51c
|
@ -51,7 +51,7 @@ where
|
||||||
EE: ObjectType + Send,
|
EE: ObjectType + Send,
|
||||||
{
|
{
|
||||||
/// Create a new connection, it can have some additional fields.
|
/// Create a new connection, it can have some additional fields.
|
||||||
pub fn new_with_additional_fields(
|
pub fn with_additional_fields(
|
||||||
has_previous_page: bool,
|
has_previous_page: bool,
|
||||||
has_next_page: bool,
|
has_next_page: bool,
|
||||||
additional_fields: EC,
|
additional_fields: EC,
|
||||||
|
|
|
@ -17,7 +17,7 @@ pub struct Edge<C, T, E> {
|
||||||
|
|
||||||
impl<C, T, E> Edge<C, T, E> {
|
impl<C, T, E> Edge<C, T, E> {
|
||||||
/// Create a new edge, it can have some additional fields.
|
/// Create a new edge, it can have some additional fields.
|
||||||
pub fn new_with_additional_fields(cursor: C, node: T, additional_fields: E) -> Self {
|
pub fn with_additional_fields(cursor: C, node: T, additional_fields: E) -> Self {
|
||||||
Self {
|
Self {
|
||||||
cursor,
|
cursor,
|
||||||
additional_fields,
|
additional_fields,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user