All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.relay.ConnectionCursor Maven / Gradle / Ivy

The newest version!
package graphql.relay;

import graphql.PublicApi;

/**
 * Represents a {@link Connection connection} cursor in Relay which is an opaque
 * string that the server understands.  Often this is base64 encoded but the spec only
 * mandates that it be an opaque cursor so meaning can't be inferred from it (to prevent cheating like
 * pre calculating the next cursor on the client say)
 *
 * See https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor
 */
@PublicApi
public interface ConnectionCursor {

    /**
     * @return an opaque string that represents this cursor.
     */
    String getValue();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy