0 I am creating a GitHub Action workflow which will call a GitHub CLI API request using GraphQL. This gh api graphql response is –paginate and returns JSON Lines (ndjson). I created the GraphQL and jq queries, and I am close to the desired output; however, my jq query needs to be modified and I […]
3 I’m using the Contentful GraphQL API to fetch a collection of items, in this example football clubs. query Clubs($limit: Int!, $skip: Int!) { clubCollection(limit: $limit, skip: $skip) { total items { name description } } } The structure of the response is: clubCollection: { items: [{ … array of all the clubs }] } […]
22 I’ve read cppreference.com’s implicit conversion: Integral promotion: prvalues of small integral types (such as char) may be converted to prvalues of larger integral types (such as int). […] Note that all other conversions are not promotions; for example, overload resolution chooses char -> int (promotion) over char -> short (conversion). The conversion from char […]
0 Here’s the relevant schema definitions: type Course implements GrApp { id: ID! term_id: ID! term_name: String type: String! name: String! data: AWSJSON course_info: AWSJSON } interface GrApp { id: ID! type: String! name: String! data: AWSJSON } input TableGrAppFilterInput { id: TableIDFilterInput type: TableStringFilterInput name: TableStringFilterInput } input TableIDFilterInput { ne: ID eq: ID […]
0 When I have a query: { postsCollection(first: 10) { pageInfo { hasNextPage, hasPreviousPage, startCursor, endCursor } edges { cursor node { id title } } } } I return only the next and previous cursors. I need to know how many pages there are in total. Furthermore, how can I navigate to an arbitrary […]
15 When it comes to functions (non-member functions in C++), marking them as static gives them internal linkage. This means that they are not visible outside the translation unit. Why isn’t this the default? I don’t have a good statistic but from what I’ve seen most functions in implementation files should be marked as static. […]
0 i have this mutation that updates tasks, but i don’t want to allow admins to modify the assigned_to field i want this to be only modifi-able by the super-admin, here’s how the code looks currently and just to for clarification i haven’t implmented any authorization or shield codeing yet, it’s my first encounter with […]
0 How to create pagination in supabase with graphql. When I have query: { postsCollection(first: 10) { pageInfo { hasNextPage, hasPreviousPage, startCursor, endCursor } edges { cursor node { id title } } } } I return olny coursor next and previus and I don’t know how many page is in pagination and next whan […]
0 I have a mysql table, which i want to represent using graphQL, I have tried something using ariandne, and i am able to get the rows. Now, I want to introduce functionality of where clause as well, One way could be to have a resolver for each column, but that has its limitations, and […]
11 When I use the following minimal code in an c++ ConsoleApp in VS2019, I get two warnings, which are completely opposite. int main() { unsigned char op1 = 0x1; unsigned char op2 = 0x3; unsigned char result1 = op1 | op2; unsigned char result2 = op1 || op2; } The warning at unsigned char […]