fuxt-backend icon indicating copy to clipboard operation
fuxt-backend copied to clipboard

Fix default where clause order to work with new format

Open drewbaker opened this issue 2 years ago • 1 comments

It looks like they changed the format for the ORDER where clauses.

It used to be this: https://github.com/funkhaus/fuxt-backend/blob/master/functions/gql-functions.php#L532-L533

But now it needs to be like this:

            children(
                where: {
                    orderby: { field: MENU_ORDER, order: ASC }
                }
            ) {

drewbaker avatar Feb 20 '23 15:02 drewbaker

Hi Drew, I checked the wp-graphql repository, but there is no recent change with the orderby format. Also, I checked both of the code in wp-graphql and fuxt-backend and it seems fine. Or did I miss something?

rsm0128 avatar Feb 21 '23 00:02 rsm0128