Пример #1
0
        /// <summary>
        /// https://github.com/ChilliCream/hotchocolate/issues/1509
        /// </summary>
        public static IObjectFieldDescriptor UseOffsetBasedPaging <TSchemaType, TType>(this IObjectFieldDescriptor descriptor)
            where TSchemaType : class, IOutputType
        {
            descriptor
            .AddOffsetBasedPagingArguments()
            .Type <SearchResultGraphType <TSchemaType, TType> >()
            .Use <QueryableOffsetBasedPagingMiddleware <TType> >();

            return(descriptor);
        }